2.1a - LinearDamping

Hi

I have my world setup with zero gravity, and a body with linear damping to slow it down.

If I apply a force to the body, the linear damping has an effect (the body moves slower with higher damping).

But when I stop applying the force, the body moves at a constant velocity and does not slow, even though I have set linear damping on the body.

I think the damping is working, as a test I set the linear velocity of the body and applied no force. It slows to a stop due to the linear damping which is correct.

Has anything changed in 2.1 that would cause the force to be applied to the body after I stop using body.applyForce() ?

Cheers
Yes, you must call ClearForces.
See here:
http://box2dflash.boristhebrave.com/docs/2.1a/updating
Thanks Borris. I thought it was probably something I missed!

Thanks for all the work you put into this port, seems to be working great so far.

Original thread: https://box2d.org/forum/viewtopic.php?t=4517