#include "MePrecision.h"
#include "MdtTypes.h"
Functions | |
| MdtFixedPathID | MdtFixedPathCreate (const MdtWorldID w, const MdtBodyID b1, const MdtBodyID b2) |
| Creates a new fixed path constraint with default parameters. More... | |
| void | MdtFixedPathReset (const MdtFixedPathID j) |
| Sets a fixed path joint to its default values. More... | |
| void | MdtFixedPathDestroy (const MdtFixedPathID j) |
| Destroys a fixed path constraint. More... | |
| void | MdtFixedPathLog (const MdtFixedPathID j) |
| Debug function - output constraint using MeMessage. More... | |
| MdtConstraintID | MdtFixedPathQuaConstraint (const MdtFixedPathID j) |
| Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints. More... | |
| void | MdtFixedPathGetPosition (const MdtFixedPathID j, MeVector3 position, const unsigned int bodyindex) |
| The fixed path joint's position with respect to one of the constrained bodies is returned in v. More... | |
| void | MdtFixedPathGetVelocity (const MdtFixedPathID j, MeVector3 velocity, const unsigned int bodyindex) |
| The fixed path joint's velocity with respect to one of the constrained bodies is returned in v. More... | |
| void | MdtFixedPathSetPosition (const MdtFixedPathID j, const MeReal x, const MeReal y, const MeReal z, const unsigned int bodyindex) |
| Sets the fixed path joint's position with respect to one of the constrained bodies. More... | |
| void | MdtFixedPathSetVelocity (const MdtFixedPathID j, const MeReal dx, const MeReal dy, const MeReal dz, const unsigned int bodyindex) |
| Sets the fixed path joint's velocity with respect to one of the constrained bodies. More... | |
This joint type is trajectory-following only, as in the previous version of the MathEngine toolkit. A full-constraint version is implemented in MdtFPFOJoint.cpp. Unlike most other constraints, the user is expected to set the joint position in the constrained bodies' reference frames. The velocity is also set in the bodies' reference frames.
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintGetBody(MdtFixedPathQuaConstraint(j), bodyindex)
|
Initializer:
\
MdtConstraintGetForce(MdtFixedPathQuaConstraint(j), bodyindex, f)
|
Initializer:
\
MdtConstraintGetTorque(MdtFixedPathQuaConstraint(j), bodyindex, t)
|
Initializer:
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintSetBodies(MdtFixedPathQuaConstraint(j), b1, b2)
|
Initializer:
|
|
Destroys a fixed path constraint.
|
The fixed path joint's position with respect to one of the constrained bodies is returned in v.
The reference frame is selected by the third parameter (BodyID).
|
The fixed path joint's velocity with respect to one of the constrained bodies is returned in v.
The reference frame is selected by the third parameter (BodyID).
|
Debug function - output constraint using MeMessage.
|
Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints.
|
Sets a fixed path joint to its default values.
Note that the joint's bodies are not reset.
Default values:
| j | fixed path joint ID |
|
Sets the fixed path joint's position with respect to one of the constrained bodies.
Unlike the ball-and-socket joint, this joint's position is set in the bodies' reference frames
The reference frame is selected by the third parameter (BodyID).
|
Sets the fixed path joint's velocity with respect to one of the constrained bodies.
This joint's velocity is set in the bodies' reference frames.
The reference frame is selected by the third parameter (BodyID).
Copyright MathEngine PLC 2000, all rights reserved.