#include "MePrecision.h"
#include "MdtTypes.h"
Functions | |
| MdtLinear2ID | MdtLinear2Create (const MdtWorldID w, const MdtBodyID b1, const MdtBodyID b2) |
| Creates a new linear 2 joint with default parameters. More... | |
| void | MdtLinear2Reset (const MdtLinear2ID j) |
| Sets a linear2 joint to its default values. More... | |
| void | MdtLinear2Destroy (const MdtLinear2ID j) |
| Destroys a linear 2 joint. More... | |
| void | MdtLinear2Log (const MdtLinear2ID j) |
| Debug function - output constraint using MeMessage. More... | |
| MdtConstraintID | MdtLinear2QuaConstraint (const MdtLinear2ID j) |
| Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints. More... | |
| void | MdtLinear2GetPosition (const MdtLinear2ID j, MeVector3 position) |
| The linear 2 joint's position vector is returned in v. More... | |
| void | MdtLinear2GetDirection (const MdtLinear2ID j, MeVector3 direction) |
| The linear 2 joint's direction vector is returned in v. More... | |
| void | MdtLinear2SetPosition (const MdtLinear2ID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the joint position in world coordinates. More... | |
| void | MdtLinear2SetDirection (const MdtLinear2ID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the joint direction in world coordinates. More... | |
The joint is constrained to lie on a line fixed by its initial position and a direction vector fixed in the reference frame of the secondary body, or fixed in the inertial frame if there is no secondary body.
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintGetBody(MdtLinear2QuaConstraint(j), bodyindex)
|
Initializer:
\
MdtConstraintGetForce(MdtLinear2QuaConstraint(j), bodyindex, f)
|
Initializer:
\
MdtConstraintGetTorque(MdtLinear2QuaConstraint(j), bodyindex, t)
|
Initializer:
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintSetBodies(MdtLinear2QuaConstraint(j), b1, b2)
|
Initializer:
|
|
Destroys a linear 2 joint.
|
The linear 2 joint's direction vector is returned in v.
|
The linear 2 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.
|
Sets a linear2 joint to its default values.
Note that the joint's bodies are not reset.
Default values:
| j | linear 2 joint ID |
|
Sets the joint direction in world coordinates.
N.B. Set attributes x, y and z *should* be const.
|
Sets the joint position in world coordinates.
Copyright MathEngine PLC 2000, all rights reserved.