M
M
maxemga2021-01-09 00:08:57
Unity
maxemga, 2021-01-09 00:08:57

With each jump, the object's jumping power increases, how to fix it?

There is a character to whom I registered a jump (I am doing the Flappy Bird mechanics) and everything seems to be fine, but if you press the key quickly, then he jumps with more and more force, flying into the stratosphere, and I need him to jump with each press with the same strength. Also a question about the Rigidbody, when an object falls, the speed of the fall of the object increases more and more, can I somehow adjust this parameter of proportional acceleration and make it less?
5ff8c9e67e224070184246.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Developer, 2021-01-09
@samodum

At the moment of pressing, you need to reset the impulse vector (or speed, depending on how you have it implemented there).
So that further with each iteration of the timer it increases from zero

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question