Collider:applyTorque
EditApplies torque to the Collider.
Arguments
Name | Type | Description |
x | number | The x component of the world-space torque vector, in newton meters. |
y | number | The y component of the world-space torque vector, in newton meters. |
z | number | The z component of the world-space torque vector, in newton meters. |
Returns
Nothing
Arguments
Name | Type | Description |
torque | Vec3 | The world-space torque vector, in newton meters. |
Returns
Nothing
Notes
Kinematic colliders ignore forces.
If the Collider is asleep, this will wake it up.
Forces are accumulated and processed during World:update
.