15 #include <unordered_map>
19 class DtOsgArticulatedModel;
44 virtual void update(
DtTime tNow);
48 virtual void setWheelData(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelData>* wheelMap);
52 virtual void setWheelData(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelDataCommon>* wheelFlipBookMap);
56 virtual void setWheelDataScrollableTexture(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelDataCommon>* wheelScrollableTextureMap);
60 virtual void updateWheels(
DtTime tNow);
63 virtual void updateWheelsFlipBookAnimations(
DtTime tNow);
66 virtual void updateWheelsScrollableTextures(
DtTime tNow);
77 virtual float calculateDistanceBetweenWheelAxles(
DtOsgArticulatedModel* model,
int firstSet,
int secondSet);
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelData > * myEntityWheelMap
map of entities to corresponding wheel data art parts
Definition: DtEntityWheelUpdater.h:93
This is not a typical updater, instead of the usual 1 updater per entity, the DtEntityWheelManager ad...
Definition: DtEntityWheelUpdater.h:24
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
An abstract base class for objects that require updates.
Definition: DtTickable.h:26
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelDataCommon > * myEntityWheelScrollableTextureMap
Definition: DtEntityWheelUpdater.h:98
An articulated model manipulator for controlling an articulated model.
Definition: DtOsgArticulatedModel.h:67
common data structure to store last position/updated These are used to compute the speed if the updat...
Definition: DtEntityWheelData.h:48
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelDataCommon > * myEntityWheelFlipBookMap
map of entities that have wheels as flip book animation and some common data for each (last position...
Definition: DtEntityWheelUpdater.h:96
Contains the declaration for makVrv::DtTickable.
brief Structure containing information about all wheel on an entity sceneObj - the scene object for t...
Definition: DtEntityWheelData.h:76
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtEntityWheelUpdater.h:89
bool myShouldRotate
Definition: DtEntityWheelUpdater.h:90
std::unordered_map< DtOsgArticulatedModel *, DtVector > myCachedVelocities
cache velocities
Definition: DtEntityWheelUpdater.h:101