World:setLinearDamping

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

World:setLinearDamping(damping)

Arguments

NameTypeDescription
dampingnumberThe linear damping.

Returns

Nothing

Notes

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

Linear damping can also be set on individual colliders.

See also