Project290.Physics.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)
        {
            if (_bodyType == BodyType.Dynamic)
            {
                if (Awake == false)
                {
                    Awake = true;
                }

                Torque += torque;
            }
        }