Click or drag to resize
DigitalRuneConstraintSettingsMaxPenetrationCorrectionVelocity Property
Gets or sets the maximal error correction velocity for correcting rigid body interpenetrations.

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

Property Value

Type: Single
The maximal error correction velocity for penetration errors. Must be greater than or equal to 0. The default value is 2.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks
The simulation will move bodies to remove constraint errors (e.g. interpenetrations of rigid bodies or violated joint limits). The error correction velocities for penetration errors are cut off above MaxPenetrationCorrectionVelocity.
See Also