| DistanceLimitSoftness Property |
Gets or sets the softness.
Namespace: DigitalRune.Physics.ConstraintsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax public float Softness { get; set; }
Public Property Softness As Single
Get
Set
public:
property float Softness {
float get ();
void set (float value);
}
member Softness : float32 with get, set
Property Value
Type:
SingleThe softness. The default value is 0.
Remarks
The softness parameter can be used to allow the constraint to be violated by a small amount.
This has the effect that the joint appears "soft". If the value is 0 the constraint is
"hard" and the simulation will try to counter all constraint violations. A small positive
value (e.g. 0.001) can be used to make the constraint soft.
See Also