Collider:applyTorque
EditApplies torque to the Collider.
Arguments
Name | Type | Description |
x | number | The x component of the torque. |
y | number | The y component of the torque. |
z | number | The z component of the torque. |
Returns
Nothing
Arguments
Name | Type | Description |
torque | Vec3 | 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
Collider:applyForce
Collider