Documentation

Unity Engine

Download Unity

Unity Engine

bounciness

How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public float bounciness { get; set; }

Remarks

The value is clamped between 0 and 1. The physics system combines the bounciness of both colliders in a contact according to PhysicsMaterial.bounceCombine.
Bounciness only applies when the colliders approach each other along the contact normal faster than Physics.bounceThreshold, which is 2 meters per second by default. Slower contacts don't bounce, whatever the bounciness value. To make slow objects bounce, such as pool balls that roll into a cushion, lower Physics.bounceThreshold.