![]() |
VR-Forces Developer's Guide
|
Plain-old-data container for entity location state fields used in double-buffering.
Stores attachment, spatial-freeze, dead-reckoning thresholder, station name, and embark check flag. The struct is copyable and assignable so that advanceFrame() can cheaply snapshot state each tick.
Public Member Functions | |
| DtEntityLocationStateComponentData () | |
| DtEntityLocationStateComponentData (const DtEntityLocationStateComponentData &orig) | |
| DtEntityLocationStateComponentData & | operator= (const DtEntityLocationStateComponentData &rhs) |
Protected Attributes | |
| DtUUID | myHostGlobalId |
| bool | mySpatiallyFrozen |
| DtThresholder | myThresholder |
| DtStationName | myStationName |
| bool | myNeedsEmbarkCheck |
|
inline |
Constructs a default-initialized data block.
mySpatiallyFrozen is false, myHostGlobalId is the null UUID, myStationName is DtOnStation_XYZ, and myNeedsEmbarkCheck is false.
|
inline |
Copy constructor. Performs a member-wise deep copy of orig.
| orig | The source data block to copy from. |
|
inline |
Assignment operator. Performs a member-wise deep copy of rhs.
| rhs | The source data block to copy from. |
References myHostGlobalId, myNeedsEmbarkCheck, mySpatiallyFrozen, myStationName, and myThresholder.
|
protected |
Accessor/mutator for the UUID of the host (parent) entity when embarked.
Accessor/mutator for the spatial-freeze flag (suppresses velocity/acceleration returns to zero). Read-only accessor and mutable accessor for the dead-reckoning thresholder settings. Accessor/mutator for the station name used when attached to a parent entity. Accessor/mutator for the flag indicating that an embarkation check is pending. UUID of the host (parent) entity; null when not embarked.
Referenced by operator=().
|
protected |
When true, velocity and acceleration accessors return zero vectors.
Referenced by operator=().
|
protected |
Dead-reckoning threshold settings (translation, rotation, aggregate dimension).
Referenced by operator=().
|
protected |
Station name used to describe the attachment point on the parent entity.
Referenced by operator=().
|
protected |
Pending flag set when embarkation state may have changed and requires reconciliation.
Referenced by operator=().