ConstraintSettings Class |
Namespace: DigitalRune.Physics.Settings
The ConstraintSettings type exposes the following members.
Name | Description | |
---|---|---|
ConstraintSettings |
Initializes a new instance of the ConstraintSettings class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AllowedAngularDeviation |
Gets or sets the allowed angular error of constraints.
| |
AllowedLinearDeviation |
Gets or sets the allowed linear error of constraints.
| |
AllowedPenetration |
Gets or sets the allowed penetration of ContactConstraints.
| |
BaumgarteRatio |
Gets or sets the Baumgarte error correction ratio. (Experimental)
| |
ContactErrorReduction |
Gets or sets the contact error reduction parameter.
| |
MaxErrorCorrectionVelocity |
Gets or sets the maximal error correction velocity for general constraint errors.
| |
MaxPenetrationCorrectionVelocity |
Gets or sets the maximal error correction velocity for correcting rigid body
interpenetrations.
| |
MinConstraintImpulse |
Gets or sets the minimal constraint impulse.
| |
NumberOfConstraintIterations |
Gets or sets the number of constraint iterations per time step.
| |
RandomizeConstraints |
Gets or sets a value indicating whether constraints are randomly reordered during
constraint solving.
| |
RestingVelocityLimit |
Gets or sets the resting velocity limit.
| |
RestitutionThreshold |
Gets or sets the restitution threshold.
| |
StackingFactor |
Gets or sets the stacking optimization factor. (Experimental)
| |
StackingTolerance |
Gets or sets the stacking optimization tolerance. (Experimental)
|
Allowed Errors: For constraints small errors are allowed (e.g. small penetrations of rigid bodies). This improves the stability of the simulation. ContactConstraints can have an AllowedPenetration. Other constraints can have an AllowedLinearDeviation and an AllowedAngularDeviation. The allowed errors should be significantly larger than 0, but so small that the visual errors in the application are acceptable.