How to prevent stacking addforce/ accumulative addforce
In my project I have the player able to jump and wall jump which both add force upwards as intended, but when the player is against a suitable wall and is able to jump, multiple add forces propel the player much higher and I'm having trouble finding a way to solve this issue. With how common addforce is used I'm assuming there's a feature to maybe having a limit of the force issued to objects or simply a way to set force and not have a bunch of addforces accumulating and thus ruining balance.
Answer by nhono99 · May 16, 2018 at 07:37 AM
I also have the same problem still didnt figure out how to solve this. But have you tried setting the velocity to zero before applying the force?
Your answer
![](https://koobas.hobune.stream/wayback/20220612132956im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
RiigidBody2D.AddForce() isnt working at all. 0 Answers
Force and Velocity problem 0 Answers
Jumping cancels out x and z velocity. 0 Answers
Calculate jumptime 0 Answers
Character jumping too fast 1 Answer