- Home /
how to use contactpoint to check the ground for juming
Im making a platformer and i want to know how to use Contact Point to check the ground below the player and jump but i don't know how to use contact point and i know there is other ways to check ground but i want to know how to this one
Answer by unity_hosein · Nov 24, 2021 at 04:12 AM
2 ways : 1-character controller : if you are using this component you can get this in code and its have a bool named (IsGrounded) and this return the object hit ground or not. 2-collision : create a bool in OncollisionEnter set bool to true in OncollisionExit set bool to false in OncollisionStay set bool to true
Your answer
![](https://koobas.hobune.stream/wayback/20220613045653im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to calculate angular velocity after a collision? 0 Answers
Sprites that don't go out of the screen? 1 Answer
Photon position syncing 0 Answers