|
VR-Engage
2.2
|
Provides additional functionality for Vortex mechanisms, including pre-step callbacks for synchronizing with VR-Forces.
#include <vortexMovementActuator.h>
Public Member Functions | |
| DtMechAddon (VxSim::VxExtension *proxy) | |
| virtual | ~DtMechAddon () override |
| virtual void | preStep () override |
| void | setVortexMovementActuator (DtVortexMovementActuator *obj) |
| void | setUpdatingFromCGF (bool cgfDriven) |
Static Public Attributes | |
| static const VxSim::VxFactoryKey | kFactoryKey |
Protected Attributes | |
| DtVortexMovementActuator * | myMovementActuator |
| bool | myUpdatingFromCGF |
|
explicit |
Constructor.
| proxy | Pointer to the extension proxy |
|
overridevirtual |
Destructor.
|
overridevirtual |
Called before each physics step.
Updates the Vortex mechanism from VR-Forces data.
| void DtMechAddon::setVortexMovementActuator | ( | DtVortexMovementActuator * | obj | ) |
Sets the movement actuator to communicate with.
| obj | Pointer to the movement actuator |
| void DtMechAddon::setUpdatingFromCGF | ( | bool | cgfDriven | ) |
Sets whether updates come from CGF.
| cgfDriven | True if driven by CGF, false if player-controlled |
|
static |
Factory key for creating instances of this addon.
|
protected |
The movement actuator.
|
protected |
Flag indicating if updates come from CGF.