![]() |
VR-Forces 5.0.2 Developer's Guide
|
A DiGuy based motion model for objects which have a DI Guy character.

Classes | |
| struct | CharacterUpdateInfoStruct |
Public Member Functions | |
| DtDiGuyMotionModel (DtDe &igs, DtSceneObject *owner) | |
| DtDiGuyMotionModel (const DtDiGuyMotionModel &orig, double time) | |
| virtual | ~DtDiGuyMotionModel () |
| virtual DtMotionModel * | clone (double simTime) |
| virtual bool | motionModelHandlesUpdate () const |
| virtual void | updateMotion (double simulationTime) |
| virtual void | updateCharacterMotion (DtDiGuyCharacterModel *characterModel, double simulationTime, bool needsTopoUpdate) |
| virtual const char * | getActionFromDescription (DtDiGuyCharacterModel *characterModel, diguyMotionDirection direction, diguyMotionPosture posture, double actualSpeed) |
| virtual void | modelAdded (DtModel *) |
| virtual void | modelRemoved (DtModel *) |
| virtual void | setAll (const DtVector &loc, const DtVector32 &vel, const DtTaitBryan &ori, const DtVector32 &acc, const DtVector32 &rotVel, DtTime curTime) |
| virtual void | setLocation (const DtVector &loc, DtTime t) |
| virtual void | setOrientation (const DtTaitBryan &ori, DtTime curTime) |
| virtual void | setVelocity (const DtVector32 &vel, DtTime curTime) |
| virtual void | setRotationalVelocity (const DtVector32 &vel, DtTime curTime) |
Public Member Functions inherited from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother > | |
| DtVRLDeadReckonerMotionModel () | |
| DtVRLDeadReckonerMotionModel (const DtVRLDeadReckonerMotionModel &orig, double time) | |
| DtMotionModel * | clone (double time) |
| virtual const DtVector & | approxLocation (DtTime curTime) const |
| virtual const DtVector32 & | approxVelocity (DtTime curTime) const |
| virtual const DtVector32 & | approxUnsmoothedVelocity (DtTime curTime) const |
| virtual void | setSmoothPeriod (float period) |
| virtual void | setSmoothingEnabled (bool enabled) |
| virtual const DtTaitBryan & | approxEuler (DtTime curTime) const |
| virtual void | setAcceleration (const DtVector32 &acc, DtTime curTime) |
| virtual const DtVector32 & | acceleration (DtTime curTime) const |
| virtual const DtVector32 & | rotationalVelocity (DtTime curTime) const |
| virtual void | setAlgorithm (DtDeadReckonTypes alg) |
| virtual DtDeadReckonTypes | algorithm () const |
| virtual void | reset () |
| virtual void | setFrozen (bool frozen) |
| virtual bool | isFrozen () const |
| virtual void | setDeadReckoningEnabled (bool enabled) |
| virtual bool | isDeadReckoningEnabled () const |
Public Member Functions inherited from makVrv::DtMotionModel | |
| DtMotionModel () | |
| virtual | ~DtMotionModel () |
Protected Types | |
| typedef std::map < DtDiGuyCharacterModel *, CharacterUpdateInfoStruct * > | CharacterInfoMap |
Protected Member Functions | |
| int | calculateDirectionFBLR (const DtTaitBryan &ori, const DtVector32 &vel) |
| int | calculateDirectionFB (const DtTaitBryan &ori, const DtVector32 &vel) |
| void | addCharacter (DtDiGuyCharacterModel *character) |
Protected Attributes | |
| DtDe & | myDe |
| DtSceneObject * | mySceneObject |
| CharacterInfoMap | myCharacters |
| DtVector | myApproxLocation |
| DtTaitBryan | myApproxOrientation |
| DtVector | myLastTopoUpdateLocation |
| DtVector | myAcceleration |
| bool | myIsGeocentric |
| bool | myNeedsInit |
| DtVector | myLastFirmLocation |
| DtTaitBryan | myLastFirmOrientation |
| DtVector32 | myLastFirmVelocity |
| DtVector32 | myLastFirmRotationalVelocity |
| DtTime | myLastFirmRotationalVelocityTime |
| bool | myOrientationChanged |
Protected Attributes inherited from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother > | |
| bool | myDeadReckoningEnabledFlag |
|
protected |
| makVrv::DtDiGuyMotionModel::DtDiGuyMotionModel | ( | DtDe & | igs, |
| DtSceneObject * | owner | ||
| ) |
CTOR.
| makVrv::DtDiGuyMotionModel::DtDiGuyMotionModel | ( | const DtDiGuyMotionModel & | orig, |
| double | time | ||
| ) |
Copy CTOR.
|
virtual |
DTOR.
|
virtual |
Clone the motion model's externally visible state.
Implements makVrv::DtMotionModel.
|
virtual |
Does the Di Guy motion model handle updates.
|
virtual |
Call to update the motion state of all characters.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
|
virtual |
Get a DI-Guy action for the current character to match the direction/posture/speed.
|
virtual |
Called whenever a model is added.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Called whenever a model is removed.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Coherently set all DR parameters, thus avoiding DR computations associated with a partial set.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Set absolute location.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Set absolute orientation.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Set absolute velocity.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
virtual |
Set/Get absolute rotational velocity.
Reimplemented from makVrv::DtVRLDeadReckonerMotionModel< DtExponentialSmoother >.
|
protected |
|
protected |
|
protected |
Add the character model to the list of models to control.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |