- Home /
Jumping mechanism
Hello!
I have a quetion about my jumping mechanism. My character is now using rigidbody2d.addforce, it works well for when my character jumps once. But if the character doublejumps he does not move as much as the first jump. I can guess that this is because the character is affected by gravity and needs to apply more force when he accelerates back down. Should i just make a variable that counter this or is there another, simpler way to make the character doublejump as much as the original jump?
Thank you
Taegos
Answer by Scribe · Aug 31, 2015 at 03:15 PM
set the characters velocity y component to 0, just before adding the Force, that way the downward speed your character already had won't effect it!
Your answer
Follow this Question
Related Questions
Triple Jump C# Script 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Cant Jump ?c# please 2 Answers