bounceCombine
Determines how the bounciness is combined.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public PhysicsMaterialCombine bounceCombine { get; set; }
Remarks
Traditionally bounciness properties are dependent on the combination of the two materials in contact. This is however impractical in a game. Instead you can use the combine mode to tune how the bounciness values of two materials are combined.
The combine mode determines the bounciness value used for a contact. If the combined value is 0, the contact doesn't bounce. For example, PhysicsMaterialCombine.Minimum or PhysicsMaterialCombine.Multiply with a material whose bounciness is 0 disables bouncing. Regardless of the combine mode, contacts that approach slower than Physics.bounceThreshold don't bounce.