This project has moved and is read-only. For the latest updates, please go here.

Appling linear impulse twice causes extreme impulse

Topics: User Forum
May 13, 2013 at 3:31 PM

We're working on a 2D-sidescroller using Farseer and we've are implementing a walljump. We're using apply linear impulse in order to jump and walljump. But something we've discovered is that when you apply another linear impulse shortly after the first one, the force is pretty extreme. It causes you to jump extremely high. I guess that this has something to do with the impulse being added up or something?

Anyway to solve this?
May 15, 2013 at 12:05 PM
try Body.ResetDynamics() before doing the double jump. This will reset all force and torque applied on the Body who calls.