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