Collider:applyTorque

Edit

Applies torque to the Collider.



Arguments

NameTypeDescription
xnumber The x component of the world-space torque vector, in newton meters.
ynumber The y component of the world-space torque vector, in newton meters.
znumber The z component of the world-space torque vector, in newton meters.

Returns

Nothing

Arguments

NameTypeDescription
torqueVec3 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.

See also