Click or drag to resize
DigitalRuneIConstraint Interface
Defines a constraint between two bodies.

Namespace: DigitalRune.Physics.Constraints
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public interface IConstraint

The IConstraint type exposes the following members.

Methods
  NameDescription
Public methodApplyImpulse
Called by the simulation to apply an impulse that satisfies the constraint.
Public methodSetup
Called by the simulation to prepare this constraint for constraint solving for a new time step.
Top
Properties
  NameDescription
Public propertyAngularConstraintImpulse
Gets or sets the angular constraint impulse that was applied.
Public propertyBodyA
Gets the first body.
Public propertyBodyB
Gets the second body.
Public propertyCollisionEnabled
Gets a value indicating whether collisions between BodyA and BodyB are disabled.
Public propertyEnabled
Gets a value indicating whether this constraint is enabled.
Public propertyLinearConstraintImpulse
Gets or sets the linear constraint impulse that was applied.
Public propertySimulation
Gets the simulation to which this constraint belongs.
Top
Remarks
A constraint limits the movement of two bodies relative two each other. It restricts the degrees of movement of one body relative to the other body.
See Also