Skip to content

Format

typescript
PhysicMaterial.bounciness

class: PhysicMaterial

Description

The surface elasticity coefficient of the physics material.

The elasticity coefficient determines the extent to which a collider bounces upon collision, i.e. the ratio of the velocity after the collision to the velocity before the collision.

Parameters

param_nametypedescription

Return

typedescription
numberThe elasticity coefficient.

Code Example