API

Enumeration PhysicsMaterialCombineModeConst

Determines how values from the PhysicsMaterial are combined when two objects are in contact. When each PhysicsMaterial specifies a different combine mode for some property, the combine mode which is used will be selected based on their order in this enum - i.e. a value later in this list will be preferentially used.

Index
ARITHMETIC_MEAN: 3

The final value will be the arithmetic mean of the two values: (valueA + valueB) / 2

GEOMETRIC_MEAN: 0

The final value will be the geometric mean of the two values: sqrt( valueA * valueB )

MAXIMUM: 2

The final value will be the larger of the two: max( valueA , valueB )

MINIMUM: 1

The final value will be the smaller of the two: min( valueA , valueB )

MULTIPLY: 4

The final value will be the product of the two values: valueA * valueB