15 #include <unordered_map>
19 class DtOsgArticulatedModel;
74 virtual void update(
DtTime tNow);
78 virtual void setWheelData(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelData>* wheelMap);
82 virtual void updateWheels(
DtTime tNow);
96 virtual float calculateDistanceBetweenWheelAxles(
DtOsgArticulatedModel* model,
int firstSet,
int secondSet)
const;
126 ,
double speed,
double angVel)
const;
137 virtual bool isReversing(
const DtVector& entityVelocity,
const DtTaitBryan& entityHeading )
const;
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelData > * myEntityWheelMap
map of entities to corresponding wheel data art parts
Definition: DtEntityWheelUpdater.h:144
double myFirstSetVelocity
psi velocity for the 1st set
Definition: DtEntityWheelUpdater.h:29
This is not a typical updater, instead of the usual 1 updater per entity, the DtEntityWheelManager ad...
Definition: DtEntityWheelUpdater.h:54
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
double myLeftSpeed
for the left track
Definition: DtEntityWheelUpdater.h:42
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
An articulated model manipulator for controlling an articulated model. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:67
double mySecondSetVelocity
psi velocity for the 2nd set
Definition: DtEntityWheelUpdater.h:31
double myRightSpeed
for the right track
Definition: DtEntityWheelUpdater.h:45
common data structure to store last position/updated These are used to compute the speed if the updat...
Definition: DtEntityWheelData.h:48
double mySpeed
for the vehicle as a whole
Definition: DtEntityWheelUpdater.h:48
DtAckermanSteeringVelocity()
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:80
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
DtDe & myDe
Definition: DtEntityWheelUpdater.h:140
bool myShouldRotate
Definition: DtEntityWheelUpdater.h:141
simple structure to hold velocity (steering or rather psi speed) of the first and optionally the 2nd ...
Definition: DtEntityWheelUpdater.h:23
simple structure to hold skid steering speed for the left, right tracks and the vehicles as a whole ...
Definition: DtEntityWheelUpdater.h:36