19.5.9 restitution

r = physics.Shape:restitution()

Parameter

Type

Description

self

in physics.Shape

The input Shape

r

out number

The restitution of the Shape

Returns the restitution (or elasticity) of the shape.

Introduced in platform.apiLevel = '2.0'