- Home /
How to prevent automatic jumping off a ledge
Hey everyone, I am working on a game using the Unity 5 Third Person Character scripts. With this script, when the player steps off a ledge they automatically jump. Anyone know how to change the script to prevent this? I have been looking in the script for where the jump physics are called. So far I only found an if statement that checks if the player is grounded, else HandleAirborneMovement(). Commenting this out works, except the player would not get grounded again after jumping on command.
Also, this may be related, but sometimes when the player jumps onto a platform but only catches the edge, they get stuck and unable to move. If anyone knows a solution to this as well please let me know.
Thank you.
Your answer
Follow this Question
Related Questions
Jumping Issue, Need Help. 0 Answers
I need help with sliding in infinite Runner please someone help 1 Answer
Help! How do we enable or disable Collider with a specific action? 2 Answers
Unity Asset Prefab Bug ThirdPersonController (left rotating bug / Snapping forward Always) 3 Answers
Raycasting bug when checking if player is grounded 2 Answers