Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Average

Uses an Average algorithm when combining friction or bounciness.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
Average = 0

Remarks

Given two friction or bounciness values, the Average algorithm used is:
(valueA + valueB) * 0.5
.