Click or drag to resize
DigitalRuneConstraintSettingsContactErrorReduction Property
Gets or sets the contact error reduction parameter.

Namespace: DigitalRune.Physics.Settings
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public float ContactErrorReduction { get; set; }

Property Value

Type: Single
The contact error reduction parameter in the range [0, 1]. The default value is 0.2.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks
This value defines the speed by which penetration errors of contact constraints are removed. If the value is 0, penetration errors are not corrected. If the value is set to 1, the simulation tries to remove 100% of the error in each time step - this is not stable and smaller values are recommended.
See Also