Click or drag to resize
DigitalRuneConstraintSettingsRestitutionThreshold Property
Gets or sets the restitution threshold.

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

Property Value

Type: Single
The restitution threshold in the range [0, 1]. The default value 0.05.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks
Restitution is also called bounciness. Rigid body materials (see IMaterial) define a coefficient of restitution for each body. If two bodies collide, a combined coefficient of restitution is computed to determine if the bodies will bounce or if the collision will be inelastic. To increase stability the simulation will clamp restitution values below RestitutionThreshold to 0. Increasing this value improves the simulation stability but reduces bounciness of objects with small bounciness values.
See Also