Collider:setAngularDamping

Edit

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

Collider:setAngularDamping(damping, threshold)

Arguments

NameTypeDefaultDescription
dampingnumber The angular damping.
thresholdnumber0 Velocity limit below which the damping is not applied.

Returns

Nothing

Notes

Angular damping can also be set on the World.

See also