The Constraint type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Constraint | Initializes a new instance of the Constraint class |
Methods
Name | Description | |
---|---|---|
![]() | Apply |
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.
|
![]() | Destroy |
Implementation should remove all references to bodies etc - they've
been destroyed.
|
![]() | DisableConstraint |
Deregister from the physics system
|
![]() | EnableConstraint |
Register with the physics system.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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.) |
![]() | PreApply |
Prepare for applying constraints - the subsequent calls to
apply will all occur with a constant position i.e. precalculate
everything possible
|
![]() ![]() | SmoothCD |
SmoothCD for ease-in / ease-out smoothing
Based on Game Programming Gems 4 Chapter 1.10
|
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | IsConstraintEnabled |
Are we registered with the physics system?
|
![]() | Satisfied |
Derived class should call this when Apply has been called on
this constraint.
|