what is my mistake HELP!
Hi great codder firstly sory for my bad english. So ı wrote this cod for my player enable to jump only his child emty object touch the ground layer mask
public void isGrounded() { Collider[] collider = Physics.OverlapSphere(GroundChecker.position, GroundCheckerRadius, GroundLayer); if(collider != null) { Debug.Log(name); CanJump = true; } else { Debug.Log(2); CanJump = false; } }
But the main problem is whenever ı try consol gave me player name even player arent on Ground Layer mask
Your answer
Follow this Question
Related Questions
Problem with the position in OverlapSphere 2 Answers
Why does Physics.OverlapSphere not always return the same number of colliders? 1 Answer
OverlapSphere Problem. 1 Answer
Get all Objects from a Physics.OverlapSphere with Name X 1 Answer
Physics.OverLapSphere is not working Please help me to fix it or replace it 0 Answers