17 #include <unordered_map>
22 class DtOsgArticulatedModel;
23 class DtCoordinateSystem;
25 class DtDeadReckonUpdater;
80 virtual void update(
DtTime tNow);
84 virtual void setWheelData(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelData>* wheelMap);
88 static void setAutoResumeTimeout(
double val);
92 static double autoResumeTimeout();
103 virtual void updateWheels(
DtTime tNow);
117 virtual float calculateDistanceBetweenWheelAxles(
DtOsgArticulatedModel* model,
int firstSet,
int secondSet)
const;
135 ,
double speed,
double angVel)
const;
144 virtual bool isReversing(
const DtVector& entityVelocity,
const DtTaitBryan& entityHeading )
const;
147 virtual void slot_coordinateSystemChanged();
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelData > * myEntityWheelMap
map of entities to corresponding wheel data art parts
Definition: DtEntityWheelUpdater.h:172
double myFirstSetVelocity
psi velocity for the 1st set
Definition: DtEntityWheelUpdater.h:35
This is not a typical updater, instead of the usual 1 updater per entity, the DtEntityWheelManager ad...
Definition: DtEntityWheelUpdater.h:60
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtDeadReckonUpdater is a scene object updater that is given kinematic updates and updates a scene obj...
Definition: DtDeadReckonUpdater.h:28
OsgEarth-free batch-entry structs shared by the articulated-model / indirect-entity batch update path...
double myLeftSpeed
for the left track
Definition: DtEntityWheelUpdater.h:48
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
DtCoordinateSystem * myCoordinateSystem
Definition: DtEntityWheelUpdater.h:168
An articulated model manipulator for controlling an articulated model. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:70
std::vector< DtPartVelocityUpdate > myReusablePartUpdates
Reusable vector for batch wheel updates. Cleared each frame, preserves capacity. Main-thread only – n...
Definition: DtEntityWheelUpdater.h:176
double mySecondSetVelocity
psi velocity for the 2nd set
Definition: DtEntityWheelUpdater.h:37
double myRightSpeed
for the right track
Definition: DtEntityWheelUpdater.h:51
common data structure to store last position/updated These are used to compute the speed if the updat...
Definition: DtEntityWheelData.h:54
static double theAutoResumeTimeout
The amount of time before auto updates will resume after a manual/nework update has been applied to a...
Definition: DtEntityWheelUpdater.h:180
double mySpeed
for the vehicle as a whole
Definition: DtEntityWheelUpdater.h:54
DtAckermanSteeringVelocity()
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Contains the declaration for makVrv::DtTickable.
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
brief Structure containing information about all wheel on an entity sceneObj - the scene object for t...
Definition: DtEntityWheelData.h:96
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:76
DtDe & myDe
Definition: DtEntityWheelUpdater.h:165
Contains the makVrv::DtOsgArticulatedModel class declaration.
bool myShouldRotate
Definition: DtEntityWheelUpdater.h:169
simple structure to hold velocity (steering or rather psi speed) of the first and optionally the 2nd ...
Definition: DtEntityWheelUpdater.h:29
simple structure to hold skid steering speed for the left, right tracks and the vehicles as a whole ...
Definition: DtEntityWheelUpdater.h:42