![]() |
VR-Forces 4.1 Class Documentation
|
DtBulletHoleUpdater is an updater that is given a position and orientation, and depending on how it is configured, updates a scene object with a position and orientation that are clamped to the underlying terrain. More...

Public Member Functions | |
| DtBulletHoleUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false) | |
| CTOR. | |
| virtual | ~DtBulletHoleUpdater () |
| DTOR. | |
| virtual void | update (double simTime) |
| Calls doGroundClamp() followed by updateSceneObject() | |
| virtual void | setEnabled (bool enabled) |
| Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called. | |
| virtual void | setBulletEnd (const DtVector &end) |
| Set the bullet's trajectory, relative to the shot's origin. | |
| virtual void | setBulletSource (DtUniqueID sourceId) |
| Set the unique ID of the entity that fired the bullet. | |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id, bool suppressTick=false) | |
| CTOR. | |
| virtual | ~DtSceneObjectUpdater () |
| Virtual DTOR. | |
| virtual bool | needsUpdate (DtTime tNow) |
| The check function called by DtTickableManager to verify if an update is required. | |
| virtual void | update (DtTime tNow)=0 |
| The update function called by DtTickableManager during update-ticks. | |
| virtual DtTime | lastUpdateTime () const |
| Get the time-stamp of the last update. | |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| Set the scene object to be updated. | |
| DtSceneObject * | findSceneObject () |
| Get the current scene object for this updater. | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this updater. | |
| virtual void | setUpdaterPosition (int vtx, const DtVector &pos) |
| Set the position of a scene object vertex. | |
| virtual const DtVector & | updaterPosition (int vtx) const |
| Get the position of a scene object vertex. | |
| virtual void | setUpdaterOrientation (int vtx, const DtTaitBryan &ori) |
| Set the orientation of a scene object vertex. | |
| virtual const DtTaitBryan & | updaterOrientation (int vtx) const |
| Get the orientation of a scene object vertex. | |
| void | updateSceneObject (DtTime tNow) |
| Update the scene object position and orientation at each vertex and set the last updated time-stamp. | |
| virtual void | terrainScaleTransformsIfNeeded () |
| Scales the transforms if the terrain scaling flag is set. | |
Protected Attributes | |
| DtUniqueID | mySource |
| DtVector | myEnd |
| bool | myDirty |
Protected Attributes inherited from makVrv::DtSceneObjectUpdater | |
| DtDe & | myDe |
| The display engine. | |
| DtUniqueID | myUniqueId |
| This distributed object's unique identifier. | |
| DtSceneObject * | mySceneObject |
| A pointer to the current scene object being updated. | |
| DtTime | myLastUpdateTime |
| The last time stamp when the updateSceneObject() was called. | |
| DtSceneObject::TransformList | myTransforms |
| Local copy of the vertex positions and orientations. | |
| const DtDeSharedState & | myDeSharedState |
| This is kept to make terrain scale updating cheaper ( by one virtual function call ). | |
| bool | myInManager |
| If tick was suppressed, then this updater is not on the tickableManager. | |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signal< void(const DtUniqueID &) > | signal_updaterToBeDeleted |
| Signal that this updater is being destroyed. | |
Protected Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
| Signal that this updater is being destroyed. | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager=NULL) | |
| CTOR. | |
| virtual | ~DtTickable () |
| Virtual DTOR. | |
DtBulletHoleUpdater is an updater that is given a position and orientation, and depending on how it is configured, updates a scene object with a position and orientation that are clamped to the underlying terrain.
| makVrv::DtBulletHoleUpdater::DtBulletHoleUpdater | ( | DtDe & | de, |
| DtUniqueID | id, | ||
| bool | suppressTick = false |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Calls doGroundClamp() followed by updateSceneObject()
|
virtual |
Set the Simple object's ground clamping Note that this only takes effect when setPosition() is called.
|
virtual |
Set the bullet's trajectory, relative to the shot's origin.
|
virtual |
Set the unique ID of the entity that fired the bullet.
|
protected |
|
protected |
|
protected |