Click or drag to resize
DigitalRuneMaterialPropertyCombiner Class
Computes the material properties for two materials in contact using simple mathematical operations.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.MaterialsMaterialPropertyCombiner

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

The MaterialPropertyCombiner type exposes the following members.

Constructors
  NameDescription
Public methodMaterialPropertyCombiner
Initializes a new instance of the MaterialPropertyCombiner class.
Top
Methods
  NameDescription
Public methodCombineFriction
Computes the combined friction coefficient.
Public methodCombineRestitution
Computes the combined coefficient of restitution.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyFrictionMode
Gets or sets the mode that is used to combine friction coefficients.
Public propertyMaxFriction
Gets or sets the maximal friction value.
Public propertyMaxRestitution
Gets or sets the maximal restitution value.
Public propertyMinFriction
Gets or sets the minimal friction value.
Public propertyRestitutionMode
Gets or sets the mode that is used to combine coefficients of restitution.
Top
Remarks
Two given coefficients are combined using a simple mathematical operation (see FrictionMode, RestitutionMode) and the result is clamped. Friction is clamped to the range [MinFriction, MaxFriction]. Restitution is clamped to the range [0, MaxRestitution].
See Also