Collider:applyTorque

Edit

Applies torque to the Collider.



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

Arguments

NameTypeDescription
torqueVec3 The torque to apply.

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