Collider:getRestitution

Returns the restitution (bounciness) of the Collider. By default, the restitution of two Colliders is combined (the max is used) when they collide to cause them to bounce away from each other. The initial restitution is 0.

restitution = Collider:getRestitution()

Arguments

None

Returns

NameTypeDescription
restitutionnumberThe restitution of the Collider.

See also