Click or drag to resize
DigitalRuneConstraintSettings Class
Defines constraint-related simulation settings.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.SettingsConstraintSettings

Namespace: DigitalRune.Physics.Settings
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public class ConstraintSettings

The ConstraintSettings type exposes the following members.

Constructors
  NameDescription
Public methodConstraintSettings
Initializes a new instance of the ConstraintSettings class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAllowedAngularDeviation
Gets or sets the allowed angular error of constraints.
Public propertyAllowedLinearDeviation
Gets or sets the allowed linear error of constraints.
Public propertyAllowedPenetration
Gets or sets the allowed penetration of ContactConstraints.
Public propertyBaumgarteRatio
Gets or sets the Baumgarte error correction ratio. (Experimental)
Public propertyContactErrorReduction
Gets or sets the contact error reduction parameter.
Public propertyMaxErrorCorrectionVelocity
Gets or sets the maximal error correction velocity for general constraint errors.
Public propertyMaxPenetrationCorrectionVelocity
Gets or sets the maximal error correction velocity for correcting rigid body interpenetrations.
Public propertyMinConstraintImpulse
Gets or sets the minimal constraint impulse.
Public propertyNumberOfConstraintIterations
Gets or sets the number of constraint iterations per time step.
Public propertyRandomizeConstraints
Gets or sets a value indicating whether constraints are randomly reordered during constraint solving.
Public propertyRestingVelocityLimit
Gets or sets the resting velocity limit.
Public propertyRestitutionThreshold
Gets or sets the restitution threshold.
Public propertyStackingFactor
Gets or sets the stacking optimization factor. (Experimental)
Public propertyStackingTolerance
Gets or sets the stacking optimization tolerance. (Experimental)
Top
Remarks

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.

See Also