The Constraint type exposes the following members.

Constructors

  NameDescription
Protected methodConstraint
Initializes a new instance of the Constraint class

Methods

  NameDescription
Public methodApply
Apply the constraint by adding impulses. Return value indicates if any impulses were applied. If impulses were applied the derived class should call SetConstraintsUnsatisfied() on each body that is involved.
Public methodDestroy
Implementation should remove all references to bodies etc - they've been destroyed.
Public methodDisableConstraint
Deregister from the physics system
Public methodEnableConstraint
Register with the physics system.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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 methodPreApply
Prepare for applying constraints - the subsequent calls to apply will all occur with a constant position i.e. precalculate everything possible
Public methodStatic memberSmoothCD
SmoothCD for ease-in / ease-out smoothing Based on Game Programming Gems 4 Chapter 1.10
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyIsConstraintEnabled
Are we registered with the physics system?
Public propertySatisfied
Derived class should call this when Apply has been called on this constraint.

See Also