#include "MePrecision.h"
#include "MdtTypes.h"
Functions | |
| MdtCarWheelID | MdtCarWheelCreate (const MdtWorldID w, const MdtBodyID b1, const MdtBodyID b2) |
| Creates a new car wheel constraint with default parameters. More... | |
| void | MdtCarWheelReset (const MdtCarWheelID j) |
| Sets a car wheel joint to its default values. More... | |
| void | MdtCarWheelDestroy (const MdtCarWheelID j) |
| Destroys a car wheel constraint. More... | |
| void | MdtCarWheelLog (const MdtCarWheelID j) |
| Debug function - output constraint using MeMessage. More... | |
| MdtConstraintID | MdtCarWheelQuaConstraint (const MdtCarWheelID j) |
| Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints. More... | |
| void | MdtCarWheelGetPosition (const MdtCarWheelID j, MeVector3 v) |
| The wheel joint's position vector is returned in v. More... | |
| MeReal | MdtCarWheelGetSteeringAngle (const MdtCarWheelID j) |
| Returns the wheel joint's steering angle. More... | |
| MeReal | MdtCarWheelGetSteeringAngleRate (const MdtCarWheelID j) |
| Returns the wheel joint's steering angle rate. More... | |
| void | MdtCarWheelGetSteeringAxis (const MdtCarWheelID j, MeVector3 v) |
| The wheel joint's steering axis is returned in v. More... | |
| MeReal | MdtCarWheelGetHingeAngle (const MdtCarWheelID j) |
| Returns the wheel joint's current hinge angle as a value between zero and pi radians, inclusive. More... | |
| MeReal | MdtCarWheelGetHingeAngleRate (const MdtCarWheelID j) |
| Returns the wheel joint's hinge angle rate. More... | |
| void | MdtCarWheelGetHingeAxis (const MdtCarWheelID j, MeVector3 v) |
| The wheel joint's Hinge axis is returned in v. More... | |
| MeReal | MdtCarWheelGetSuspensionHeight (const MdtCarWheelID j) |
| Returns the wheel joint's suspension height. More... | |
| MeReal | MdtCarWheelGetSteeringMotorDesiredVelocity ( const MdtCarWheelID j) |
| Returns the desired velocity of the steering motor. More... | |
| MeReal | MdtCarWheelGetSteeringMotorMaxForce ( const MdtCarWheelID j) |
| Returns the maximum force that the steering motor is allowed to use to attain its desired velocity. More... | |
| int | MdtCarWheelIsSteeringLocked (const MdtCarWheelID j) |
| Returns the lock state of the steering angle. More... | |
| MeReal | MdtCarWheelGetHingeMotorDesiredVelocity ( const MdtCarWheelID j) |
| Returns the desired velocity of the hinge motor. More... | |
| MeReal | MdtCarWheelGetHingeMotorMaxForce ( const MdtCarWheelID j) |
| Returns the maximum force that the hinge motor is allowed to use to attain its desired velocity. More... | |
| MeReal | MdtCarWheelGetSuspensionHighLimit ( const MdtCarWheelID j) |
| Returns the suspension upper limit. More... | |
| MeReal | MdtCarWheelGetSuspensionLowLimit ( const MdtCarWheelID j) |
| Returns the suspension lower limit. More... | |
| MeReal | MdtCarWheelGetSuspensionLimitSoftness ( const MdtCarWheelID j) |
| Returns the suspension limit softness. More... | |
| MeReal | MdtCarWheelGetSuspensionReference ( const MdtCarWheelID j) |
| Returns the suspension attachment point ("reference"). More... | |
| MeReal | MdtCarWheelGetSuspensionKp (const MdtCarWheelID j) |
| Returns the suspension "proportionality constant". More... | |
| MeReal | MdtCarWheelGetSuspensionKd (const MdtCarWheelID j) |
| Returns the suspension "damping constant" (also known as the "derivative constant"). More... | |
| void | MdtCarWheelSetPosition (const MdtCarWheelID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the joint position in world coordinates. More... | |
| void | MdtCarWheelSetSteeringAxis (const MdtCarWheelID j, const MeReal x, const MeReal y, const MeReal z) |
| Sets the wheel joint's steering axis. More... | |
| void | MdtCarWheelSetSteeringLimitedForceMotor ( const MdtCarWheelID j, const MeReal desiredVelocity, const MeReal forceLimit) |
| Sets the limited force motor parameters of car wheel joint. More... | |
| void | MdtCarWheelSetSteeringLock (const MdtCarWheelID j, const int lock) |
| Locks or unlocks the steering angle. More... | |
| void | MdtCarWheelSetHingeAxis (const MdtCarWheelID j, const MeReal x, const MeReal y, const MeReal z) |
| Returns the wheel joint's Hinge axis. More... | |
| void | MdtCarWheelSetHingeLimitedForceMotor (const MdtCarWheelID j, const MeReal desiredVelocity, const MeReal forceLimit) |
| Sets the hinge limited force motor parameters. More... | |
| void | MdtCarWheelSetSuspension (const MdtCarWheelID j, const MeReal Kp, const MeReal Kd, const MeReal limit_softness, const MeReal lolimit, const MeReal hilimit, const MeReal reference) |
| Sets the suspension parameters. More... | |
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintGetBody(MdtCarWheelQuaConstraint(j), bodyindex)
|
Initializer:
\
MdtConstraintGetForce(MdtCarWheelQuaConstraint(j), bodyindex, f)
|
Initializer:
\
MdtConstraintGetTorque(MdtCarWheelQuaConstraint(j), bodyindex, t)
|
Initializer:
|
Initializer:
|
Initializer:
|
Initializer:
\
MdtConstraintSetBodies(MdtCarWheelQuaConstraint(j), b1, b2)
|
Initializer:
|
Creates a new car wheel constraint with default parameters.
Note that the chassis of the car must be the first body.
|
Destroys a car wheel constraint.
|
Returns the wheel joint's current hinge angle as a value between zero and pi radians, inclusive.
|
Returns the wheel joint's hinge angle rate.
|
The wheel joint's Hinge axis is returned in v.
|
Returns the desired velocity of the hinge motor.
|
Returns the maximum force that the hinge motor is allowed to use to attain its desired velocity.
|
The wheel joint's position vector is returned in v.
|
Returns the wheel joint's steering angle.
|
Returns the wheel joint's steering angle rate.
|
The wheel joint's steering axis is returned in v.
|
Returns the desired velocity of the steering motor.
|
Returns the maximum force that the steering motor is allowed to use to attain its desired velocity.
|
Returns the wheel joint's suspension height.
|
Returns the suspension upper limit.
|
Returns the suspension "damping constant" (also known as the "derivative constant").
This gives rise to the damping term in the suspension force equation: f = kp*displacement + kd*velocity
|
Returns the suspension "proportionality constant".
This gives rise to the spring term in the suspension force equation: f = kp*displacement + kd*velocity.
|
Returns the suspension limit softness.
|
Returns the suspension lower limit.
|
Returns the suspension attachment point ("reference").
|
Returns the lock state of the steering angle.
lock is 1 if steering axis is locked at angle 0.
|
Debug function - output constraint using MeMessage.
|
Gets an MdtConstraintID from a specific constraint for performing functions common to all constraints.
|
Sets a car wheel joint to its default values.
Note that the joint's bodies are not reset.
| j | car wheel joint ID |
|
Returns the wheel joint's Hinge axis.
|
Sets the hinge limited force motor parameters.
|
Sets the joint position in world coordinates.
|
Sets the wheel joint's steering axis.
|
Sets the limited force motor parameters of car wheel joint.
|
Locks or unlocks the steering angle.
|
Sets the suspension parameters.
Copyright MathEngine PLC 2000, all rights reserved.