FarseerPhysics.Dynamics.World.clearForces C# (CSharp) 메소드

clearForces() 공개 메소드

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
리턴 void
		public void clearForces()
		{
			for( int i = 0; i < bodyList.Count; i++ )
			{
				var body = bodyList[i];
				body._force = Vector2.Zero;
				body._torque = 0.0f;
			}
		}