Answer the question
In order to leave comments, you need to log in
How to remove the increase in jump strength on a slope?
Hello.
2D game.
On the character I use rigidbody2d and circle collider 2d.
Actually, the problem is that when climbing up the slope, if you jump at this moment, then the strength of the jump increases significantly (for example: with a gravity of 3 - about + 35%, with 1 gravity - about + 200-250%).
How can you make sure that the jump force is always the same?
P.S. In the physical the friction and bounciness models are zero.
Answer the question
In order to leave comments, you need to log in
I don’t know specifically about rigidbody2d and circle, but, in general, this is logical. When lifting, the fox already has a vertical component of speed directed upwards, which will be added to the momentum of the jump.
I would try zeroing out the speed components before jumping, and then jump in the right direction as if from a stationary position.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question