Click or drag to resize
DigitalRuneConstraint Class
Defines a constraint between two rigid bodies.
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.ConstraintsConstraint
    More...

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

The Constraint type exposes the following members.

Constructors
  NameDescription
Protected methodConstraint
Initializes a new instance of the Constraint class
Top
Methods
  NameDescription
Public methodApplyImpulse
Called by the simulation to apply an impulse that satisfies the constraint.
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.)
Protected methodOnAddToSimulation
Called when this constraint is added to a simulation.
Protected methodOnApplyImpulse
Called when the constraint impulse should be applied.
Protected methodOnChanged
Called when properties of this constraint were changed.
Protected methodOnRemoveFromSimulation
Called when this constraint is removed from a simulation.
Protected methodOnSetup
Called when constraint should be set-up for a new time step.
Public methodSetup
Called by the simulation to prepare this constraint for constraint solving for a new time step.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAngularConstraintImpulse
Gets or sets the angular constraint impulse that was applied.
Public propertyBodyA
Gets or sets the first body.
Public propertyBodyB
Gets or sets the second body.
Public propertyCollisionEnabled
Gets or sets a value indicating whether collisions between BodyA and BodyB are disabled.
Public propertyEnabled
Gets or sets 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
Inheritance Hierarchy
SystemObject
  DigitalRune.Physics.ConstraintsConstraint
    DigitalRune.Physics.ConstraintsAngularLimit
    DigitalRune.Physics.ConstraintsAngularVelocityMotor
    DigitalRune.Physics.ConstraintsBallJoint
    DigitalRune.Physics.ConstraintsCylindricalJoint
    DigitalRune.Physics.ConstraintsDistanceLimit
    DigitalRune.Physics.ConstraintsEulerMotor
    DigitalRune.Physics.ConstraintsFixedJoint
    DigitalRune.Physics.ConstraintsHinge2Joint
    DigitalRune.Physics.ConstraintsHingeJoint
    DigitalRune.Physics.ConstraintsLinearLimit
    DigitalRune.Physics.ConstraintsLinearVelocityMotor
    DigitalRune.Physics.ConstraintsNoRotationConstraint
    DigitalRune.Physics.ConstraintsPlaneLimit
    DigitalRune.Physics.ConstraintsPointOnLineConstraint
    DigitalRune.Physics.ConstraintsPointOnPlaneConstraint
    DigitalRune.Physics.ConstraintsPositionMotor
    DigitalRune.Physics.ConstraintsPrismaticJoint
    DigitalRune.Physics.ConstraintsQuaternionMotor
    DigitalRune.Physics.ConstraintsTwistSwingLimit
    DigitalRune.Physics.ConstraintsUniversalJoint