World:setAngularDamping

Sets the angular damping of the World. Angular damping makes things less "spinny", making them slow down their angular velocity over time. Damping is only applied when angular velocity is over the threshold value.

World:setAngularDamping(damping, threshold)

Arguments

NameTypeDefaultDescription
dampingnumberThe angular damping.
thresholdnumber0Velocity limit below which the damping is not applied.

Returns

Nothing

Notes

Angular damping can also be set on individual colliders.

See also