- Home /
Player does not jump when running at the edge of a ledge (How to add jump tolerance?),Player Does not jump when at the edge of a ledge
im using a 2d overlap circle to check isGrounded. After doing some research i found that due to there being no jump tolerance, pressing the jump button at the last moment results in the jump not registring as even though it seems as the player is on the ground visually, its not grounded. I would really appreciate help on how to add jump tolerance as the platformer requires a lot of edge jumps and im unable to figure out a method to add it.,
Answer by RedBambooLeaf · Mar 05, 2020 at 04:18 PM
There are several reasons why your character is not jumping when you expect. The first 3 thing I would look for are:
When are you capturing the input? The input should be registered during the update pass: make sure it is.
DefaultContactOffset: it may be a matter of sizes... Make sure the default contact offset is set to an appropriate value and that your overlap circle is large enough.
DetectionMode: sometimes, especially for fast moving rigidbodies, it is necessary to change the detection mode: make sure you are using the mode that best fits your case.
Hope it helps! I'm sure you can find more information in Unity official documentation and similar questions here on Unity Answers.
Thank you however these have not solved my problem, 1:Yes the input is called in the update function and the jumping is carried in fixed update 2:I have experimented with circle sizes large and small however it still does not fix the problem 3:If by detection mode you are referring to continuos or discrete then these settings do not fix the problem.
I have searched a lot on the forums but am still unable to find a solutioon, however i will keep looking
Hmm I see... Can you post here physics settings + rigid body settings + the way you're executing the jump and the ground-checking + collider components settings for player and ground?
Your answer
Follow this Question
Related Questions
Player can jump on non ground items 1 Answer
Grounded check not working on sloped ground. 1 Answer
How to only Jump on Ground Items 1 Answer