| ConstraintSettingsContactErrorReduction Property |
Gets or sets the contact error reduction parameter.
Namespace: DigitalRune.Physics.SettingsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public float ContactErrorReduction { get; set; }
Public Property ContactErrorReduction As Single
Get
Set
public:
property float ContactErrorReduction {
float get ();
void set (float value);
}
member ContactErrorReduction : float32 with get, set
Property Value
Type:
Single
The contact error reduction parameter in the range [0, 1]. The default value is 0.2.
Exceptions 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