Collider:setAngularDamping

Edit

Sets the angular damping of the Collider. Angular damping is similar to drag or air resistance, reducing the Collider's angular velocity over time.

Collider:setAngularDamping(damping)

Arguments

NameTypeDescription
dampingnumber The angular damping.

Returns

Nothing

Notes

The default damping is .05, meaning the collider will lose approximately 5% of its velocity each second. A damping value of zero means the Collider will not lose velocity over time.

Negative damping is not meaningful and will be clamped to zero.

See also