![]() |
VR-Forces Developer's Guide
|
Go to the source code of this file.
Classes | |
| struct | DtComputedSpatialState |
Functions | |
| DtComputedSpatialState | DtComputeSpatialState (const DtVector &worldPos, const DtTaitBryan &worldOri, const DtVector &worldVel) |
| void | DtAppendResources (const std::vector< DtSimResource > &simResources, const DtRemoteControlModelSetManager *dictionaryManager, std::vector< DtDatasource::DtResourceEntry > &out) |
|
inline |
Convert ECEF position, orientation and velocity to the standard WebLVC spatial state fields. Callers copy only the fields their snapshot type requires.
References DtComputedSpatialState::climbRate, DtComputedSpatialState::groundSpeed, DtComputedSpatialState::heading, DtComputedSpatialState::location, DtComputedSpatialState::movementDirection, and DtComputedSpatialState::speed.
| void DtAppendResources | ( | const std::vector< DtSimResource > & | simResources, |
| const DtRemoteControlModelSetManager * | dictionaryManager, | ||
| std::vector< DtDatasource::DtResourceEntry > & | out | ||
| ) |
Converts simResources into DtDatasource::DtResourceEntry objects and appends them to out. Pass a non-null dictionaryManager to resolve display names.