setRestitution

fun setRestitution(restitution: Float)

Sets the restitution of a physics material.

Parameters

restitution

The restitution for the physics material, which is clamped in range 0,1. The default value is 0f.