Background:
I have a moving physics object being accelerated by an applyForce function called every 15ms.
I attempt to stop the physics object by:
setLinearVelocity( 0,0 ) and no longer calling the applyForce funtion.
The Problem:
Sometimes the physics object keeps moving at a slow pace.
My understanding:
applyImpulse: Instantaneously changes the velocity of a physics object due to a calculated “force”
applyForce: Accelerates a physic object over a brief period of time due to a calculated “force”
So my understanding is that applyForce is just like applyImpulse except rather than being instant it happens over a brief period of time.
What I think the fix is:
I think the applyForce is still finishing being applied for a very brief period of time after the object was stopped.
Is there a function to terminate the applyForce command?