#include <rdBodyConstraint.h>
Public Member Functions | |
| virtual | ~rdBodyConstraint () |
| Destructor. | |
| rdBodyConstraint () | |
| Constructor. | |
| int | getNC () |
| Get the number of non-zero constraint directions. | |
| void | setID (int aID) |
| Set the ID of this body constraint. | |
| int | getID () |
| Get the ID of this body constraint. | |
| rdPointConstraint * | getPC (int aI) |
| Get a pointer to a point constraint. | |
| void | setValues (int aN, int aID[], double aV[][3]) |
| Scan a list of point id's and set constraint values for any matching point constraints. | |
| void | constructConstraintsForPoint1 () |
| Construct the constraint directions for point 1. | |
| void | constructConstraintsForPoint2 () |
| Construct the constraint directions for point 2. | |
| double * | findMostOrthogonal (rdPointConstraint *aPC, double aV[3]) |
| Find the constraint direction in the provided point constraint that is most orthogonal to the provided vector. | |
| void | clear () |
| Clear all point constraints. | |
| void | clearValues () |
| Clear all constraint values. | |
Public Attributes | |
| int | _id |
| rdPointConstraint | _pc [3] |
|
|
Clear all point constraints.
|
|
|
Construct the constraint directions for point 1. Two constraint directions are set for point 1 orthogonal to the vector directed from point 0 to point 1. Note that it is assumed that the constraint directions for point 0 have already been set properly. |
|
|
Construct the constraint directions for point 2. One constraint direction is set for point 2 orthogonal to the vector directed from point 0 to point 1 and the vector from point 1 to point 2. Note that it is assumed that the constraint directions for point 0 and Point 1 have already been set properly. |
|
|
Get the ID of this body constraint.
|
|
|
Get the number of non-zero constraint directions.
|
|
|
Get a pointer to a point constraint.
|
|
|
Set the ID of this body constraint.
|
1.3