Skip to content

PhysicMaterialCombine

The PhysicMaterialCombine enumeration is used to define how two physics materials are combined when two objects collide, determining the resulting collision effect.

attributesdescription
AverageCalculate the average value of two physical material properties. For example, if one object has a friction coefficient of 0.5 and another object has a friction coefficient of 0.3, the friction coefficient between the two objects will be calculated as (0.5 + 0.3) / 2 = 0.4.
MultiplyMultiply two physical material properties together. For example, if one object has a friction coefficient of 0.5 and another object has a friction coefficient of 0.3, when the two objects collide, their friction coefficients will be calculated as 0.5 * 0.3 = 0.15.
MinimumReturns the minimum value of two physical material properties. For example, if one object has a friction coefficient of 0.5 and another object has a friction coefficient of 0.3, the friction coefficient between the two objects will be calculated as 0.3 when they collide.
MaximumGet the maximum value of two physical material properties. For example, if one object has a friction coefficient of 0.5 and another object has a friction coefficient of 0.3, the friction coefficient between the two objects will be calculated as 0.5 when they collide.