Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

PhysicsMaterial2D.bounciness

public var bounciness: 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.