Class PhysicsCombineMode
Enumeration that determines the way in which two material properties will be combined to yield a friction or restitution coefficient for a collision.
Inheritance
System.Object
PhysicsCombineMode
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class PhysicsCombineMode : Enum
Remarks
Physics doesn't have any inherent combinations because the coefficients are determined empirically on a case by case basis. However, simulating this with a pairwise lookup table is often impractical. The effective combine mode for the pair is maximum(material0.combineMode, material1.combineMode).
Fields
Average
Uses the average value of the touching materials: (a+b)/2.
Declaration
public const PhysicsCombineMode Average
Field Value
PhysicsCombineMode
|
Maximum
Uses the larger value of the touching materials: max(a, b)
Declaration
public const PhysicsCombineMode Maximum
Field Value
PhysicsCombineMode
|
Minimum
Uses the smaller value of the touching materials: min(a,b)
Declaration
public const PhysicsCombineMode Minimum
Field Value
PhysicsCombineMode
|
Multiply
Multiplies the values of the touching materials: a*b
Declaration
public const PhysicsCombineMode Multiply
Field Value
PhysicsCombineMode
|
value__
Declaration
public int value__
Field Value
System.Int32
|