#include "MePrecision.h"
#include "MdtTypes.h"
Functions | |
| MdtUniversalID | MdtUniversalCreate (const MdtWorldID w, const MdtBodyID b1, const MdtBodyID b2) |
| Creates a new universal joint with default parameters. More... | |
| void | MdtUniversalReset (const MdtUniversalID j) |
| Initialises a universal joint and sets default values. More... | |
| void | MdtUniversalDestroy (const MdtUniversalID j) |
| Destroys a universal joint. More... | |
| void | MdtUniversalLog (const MdtUniversalID j) |
| Debug function - output constraint using MeMessage. More... | |
| MdtConstraintID | MdtUniversalQuaConstraint (const MdtUniversalID j) |
| Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints. More... | |
| void | MdtUniversalGetPosition (const MdtUniversalID j, MeVector3 position) |
| The universal joint's position vector is returned in v. More... | |
| void | MdtUniversalGetAxis (const MdtUniversalID j, MeVector3 axis, const unsigned int bodyindex) |
| This returns one of the universal joint's axes in v. More... | |
| void | MdtUniversalSetPosition (const MdtUniversalID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the joint position in world coordinates. More... | |
| void | MdtUniversalSetAxis (const MdtUniversalID j, const MeReal x, const MeReal y, const MeReal z, const unsigned int bodyindex) |
| Sets the joint axis corresponding to the third parameter (bodyindex) in world coordinates. More... | |
This joint is essentially a pair of hinges with their axes joined at an angle (usually 90 degrees).
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintGetBody(MdtUniversalQuaConstraint(j), bodyindex)
|
Initializer:
\
MdtConstraintGetForce(MdtUniversalQuaConstraint(j), bodyindex, f)
|
Initializer:
\
MdtConstraintGetTorque(MdtUniversalQuaConstraint(j), bodyindex, t)
|
Initializer:
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintSetBodies(MdtUniversalQuaConstraint(j), b1, b2)
|
Initializer:
|
|
Destroys a universal joint.
|
This returns one of the universal joint's axes in v.
The axis is selected by the third parameter (BodyID).
|
The universal joint's position vector is returned in v.
|
Debug function - output constraint using MeMessage.
|
Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints.
|
Initialises a universal joint and sets default values.
Note that the joint's bodies are not reset.
Default values:
| j | universal joint ID |
|
Sets the joint axis corresponding to the third parameter (bodyindex) in world coordinates.
|
Sets the joint position in world coordinates.
N.B. Set attributes x, y and z *should* be const.
Copyright MathEngine PLC 2000, all rights reserved.