Collider:getLinearDamping

Returns the Collider's linear damping parameter. Linear damping is similar to drag or air resistance, slowing the Collider down over time.

damping = Collider:getLinearDamping()

Arguments

None

Returns

NameTypeDescription
dampingnumberThe linear damping.

Notes

A linear damping of 0 means the Collider won't slow down over time.

Linear damping can also be set on the World using World:setLinearDamping, which will affect all new colliders.

See also