public ApplyTorque ( float torque ) : void | ||
torque | float | about the z-axis (out of the screen), usually in N-m. |
return | void |
public void ApplyTorque(float torque)
{
if (m_type != BodyType.Dynamic)
{
return;
}
if (Awake == false)
{
Awake = true;
}
Torque += torque;
}