Collider:applyAngularImpulse

Edit

Applies an angular impulse to the Collider.

An impulse is a single instantaneous push. Impulses are independent of time, and are meant to only be applied once. Use Collider:applyTorque for a time-dependent push that happens over multiple frames.



Arguments

NameTypeDescription
xnumber The x component of the world-space impulse vector, in newton meter seconds.
ynumber The y component of the world-space impulse vector, in newton meter seconds.
znumber The z component of the world-space impulse vector, in newton meter seconds.

Returns

Nothing

Arguments

NameTypeDescription
impulseVec3 The world-space impulse vector, in newton meter seconds.

Returns

Nothing

Notes

Kinematic colliders ignore forces.

If the Collider is asleep, this will wake it up.

Impulses are accumulated and processed during World:update.

See also