World:getLinearDamping

Returns the linear damping parameters of the World. Linear damping is similar to drag or air resistance, slowing down colliders over time as they move.

damping, threshold = World:getLinearDamping()

Arguments

None

Returns

NameTypeDescription
dampingnumberThe linear damping.
thresholdnumberVelocity limit below which the damping is not applied.

Notes

A linear damping of 0 means colliders won't slow down over time. This is the default.

Linear damping can also be set on individual colliders.

See also