Box2D.Dynamics.World.ClearForces C# (CSharp) Method

ClearForces() public method

Call this after you are done with time steps to clear the forces. You normally call this after each call to Step, unless you are performing sub-steps. By default, forces will be automatically cleared, so you don't need to call this function.
public ClearForces ( ) : void
return void
        public void ClearForces()
        {
            for (Body body = BodyList; body != null; body = body.Next)
            {
                body.Force.SetZero();
                body.Torque = 0.0f;
            }
        }