FarseerPhysics.Dynamics.Body.applyTorque C# (CSharp) Method

applyTorque() public method

Apply a torque. This affects the angular velocity without affecting the linear velocity of the center of mass. This wakes up the body.
public applyTorque ( float torque ) : void
torque float The torque about the z-axis (out of the screen), usually in N-m.
return void
		public void applyTorque( float torque )
		{
			Debug.Assert( !float.IsNaN( torque ) );

			if( _bodyType == BodyType.Dynamic )
			{
				if( isAwake == false )
					isAwake = true;

				_torque += torque;
			}
		}