Appling linear impulse twice causes extreme impulse

Topics: User Forum
May 13, 2013 at 2:31 PM
Hi!

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 11:05 AM
try Body.ResetDynamics() before doing the double jump. This will reset all force and torque applied on the Body who calls.