Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

PhysicsMaterial2D.bounciness

Switch to Manual
public float bounciness;

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.

Did you find this page useful? Please give it a rating: