Collider:applyTorque

Applies torque to the Collider.

Collider:applyTorque(x, y, z)

Arguments

NameTypeDescription
xnumber The x component of the torque.
ynumber The y component of the torque.
znumber The z component of the torque.

Returns

Nothing

Notes

If the Collider is asleep, it will need to be woken up with Collider:setAwake for this function to have any effect.

See also