Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PhysicsMaterial2D.bounciness

var bounciness: float;
float bounciness;
bounciness as float

Description

The degree of elasticity during collisions.

A value of zero indicates no elasticity (ie, no bounce at all) while a value of one indicates perfect elasticity.

See Also: PhysicMaterial.bounciness.