#include "MePrecision.h"
#include "MdtTypes.h"
Functions | |
| MdtLinear1ID | MdtLinear1Create (const MdtWorldID w, const MdtBodyID b1, const MdtBodyID b2) |
| Creates a new linear 1 joint with default parameters. More... | |
| void | MdtLinear1Reset (const MdtLinear1ID j) |
| Sets a linear1 joint to its default values. More... | |
| void | MdtLinear1Destroy (const MdtLinear1ID j) |
| Destroys a linear 1 joint. More... | |
| void | MdtLinear1Log (const MdtLinear1ID j) |
| Debug function - output constraint using MeMessage. More... | |
| MdtConstraintID | MdtLinear1QuaConstraint (const MdtLinear1ID j) |
| Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints. More... | |
| void | MdtLinear1GetPosition (const MdtLinear1ID j, MeVector3 position) |
| The linear 1 joint's position vector is returned in v. More... | |
| void | MdtLinear1SetPosition (const MdtLinear1ID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the joint position in world coordinates. More... | |
The primary body is constrained to lie in a plane fixed in the reference frame of the second body (or the inertial frame). The plane normal is the vector from the secondary body to the joint position in the reference frame of the secondary body. If there is no secondary body, the plane normal is the vector from the origin to the joint position.
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintGetBody(MdtLinear1QuaConstraint(j), bodyindex)
|
Initializer:
\
MdtConstraintGetForce(MdtLinear1QuaConstraint(j), bodyindex, f)
|
Initializer:
\
MdtConstraintGetTorque(MdtLinear1QuaConstraint(j), bodyindex, t)
|
Initializer:
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintSetBodies(MdtLinear1QuaConstraint(j), b1, b2)
|
Initializer:
|
|
Destroys a linear 1 joint.
|
The linear 1 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 linear1 joint to its default values.
Note that the joint's bodies are not reset.
Default values:
| j | linear 1 joint ID |
|
Sets the joint position in world coordinates.
The joint position with respect to the secondary body defines the plane normal for this joint. The joint position is therefore not allowed to be coincident with the secondary body, or with the origin of the inertial frame if there is no secondary body.
N.B. Set attributes x, y and z *should* be const.
Copyright MathEngine PLC 2000, all rights reserved.