Collider:setLinearDamping
EditSets the linear damping of the Collider. Linear damping is similar to drag or air resistance, slowing the Collider down over time.
Collider:setLinearDamping(damping)
Arguments
Name | Type | Description |
damping | number | The linear 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.