Click or drag to resize
DigitalRuneIMaterialPropertyCombiner Interface
Computes the material properties for two materials in contact.

Namespace: DigitalRune.Physics.Materials
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public interface IMaterialPropertyCombiner

The IMaterialPropertyCombiner type exposes the following members.

Methods
  NameDescription
Public methodCombineFriction
Computes the combined friction coefficient.
Public methodCombineRestitution
Computes the combined coefficient of restitution.
Top
Remarks

Many material properties depend on two objects. For example, the friction of ice on rubber is different from rubber on rubber. The material property combiner computes the coefficient that is actually used in the simulation to simulate the physical behavior at a contact.

Combining material coefficients can be done in different ways. The accurate way would be to look up the exact value in a material table. The simple way is to use a mathematical operation to combine the coefficients, e.g. multiply both coefficients or compute the average. For most scenarios in games, the latter method is sufficient.

See Also