|
VR-Engage
2.2
|
DtVortexPhysicalWorld handles the initialization, management, and execution of the Vortex physics engine within the simulation. It manages terrain, collision detection, and physics simulation updates.
#include <vortexPhysicalWorld.h>
Static Public Member Functions | |
| static DtVortexPhysicalWorld * | instance () |
Static Protected Member Functions | |
| static void | preScenarioRollbackCallback (void *data) |
| static void | postScenarioRollbackCallback (void *data) |
| static void | preLoadScenarioCallback (DtScenario &scenario, void *data) |
| static void | postLoadScenarioCallback (const DtScenario &scenario, void *data) |
| static void | preLoadTerrainCallback (const DtFilename &scenario, void *data) |
| static void | postLoadTerrainCallback (const DtFilename &terrain, void *data) |
| static void | preCloseScenarioCallback (void *data) |
| static void | postCloseScenarioCallback (void *data) |
| static void | scenarioRunCallback (void *data) |
| static void | scenarioPauseCallback (void *data) |
| static void | postTickInitCallback (void *data) |
| static void | cgfAboutToBeDestroyed (void *data) |
| static void | renderImguiCallback (void *args) |
Static Protected Attributes | |
| static DtVortexPhysicalWorld * | thePhysicalWorld |
|
explicit |
Constructs a new Vortex physical world.
| simManager | Pointer to the simulation services manager |
| localObjManager | Pointer to the local object manager |
| cgf | Pointer to the CGF instance |
Referenced by instance().
|
overridevirtual |
Virtual destructor.
|
static |
Gets the singleton instance of the Vortex Physical World.
References DtVortexPhysicalWorld().
|
overridevirtual |
Main update function for the physics simulation.
Updates the Vortex Application, VortexDebug, VortexCollisionProxyGenerator, and VortexDynamicTerrainHandler components.
| Vx::VxSmartPtr< VxSim::VxApplication > makVre::DtVortexPhysicalWorld::vortexApplication | ( | ) |
Gets the Vortex application instance.
| VxSim::VxSmartInterface< VxContent::Scene > makVre::DtVortexPhysicalWorld::vortexScene | ( | ) |
Gets the Vortex scene instance.
| makVre::DtInitializer * makVre::DtVortexPhysicalWorld::configInitializer | ( | ) |
Gets the configuration initializer.
| makVre::DtCoordinateConvert * makVre::DtVortexPhysicalWorld::geocentricCoordConverter | ( | ) |
Gets the geocentric coordinate converter.
|
virtual |
Updates the coordinate converter based on different conditions Called from.
|
virtual |
Sets the Vortex universe instance.
| universe | Pointer to the VxUniverse to set |
|
virtual |
Gets the current Vortex universe instance.
|
virtual |
Sets the paged terrain producer.
| producer | Pointer to the terrain producer instance |
|
virtual |
Gets the current paged terrain producer.
|
virtual |
Sets the paged terrain interface.
| pagedTerrainInterface | Pointer to the terrain interface |
|
virtual |
Gets the current paged terrain interface.
|
virtual |
Gets the dynamic terrain handler.
|
virtual |
Sets the dynamic terrain handler.
| handler | Shared pointer to the new terrain handler |
|
virtual |
Gets the collision proxy generator.
|
virtual |
Gets the local object manager.
|
virtual |
Gets the debug interface.
|
virtual |
Gets the thread pool for paged terrain.
|
virtual |
Gets the material table.
| bool makVre::DtVortexPhysicalWorld::isDestructingCGF | ( | ) |
Checks if the CGF is being destroyed.
| double makVre::DtVortexPhysicalWorld::checkDistanceToCoordinateOrigin | ( | ) | const |
Gets the distance to check to the coordinate origin. Distance is in km. Set in the vortexConfig.lua.
| void makVre::DtVortexPhysicalWorld::setCheckDistanceToCoordinateOrigin | ( | double | val | ) |
The distance to check for how the vehicle from the coordinate origin. Distance is in km. Set in the vortexConfig.lua by default.
| val | distance (km) |
| bool makVre::DtVortexPhysicalWorld::checkToCoordinateOrigin | ( | ) | const |
Check for how far we are from the coordinate origin. Purely informational check, provides no simulation impact.
| void makVre::DtVortexPhysicalWorld::setCheckToCoordinateOrigin | ( | bool | val | ) |
Set for Check distance from origin.
| val |
|
protectedvirtual |
Updates the geocentric coordinate converter to a new position Given a new world position, reinitializes the coordinate converter to reference the passed in point as your new 0,0,0 in flat earth coordinates.
| worldPos | The world location in GeocentricCoordinates |
|
protectedvirtual |
Updates the physics universe settings.
| univ | Pointer to the universe to update |
|
protectedvirtual |
Resets the Vortex application to its initial state.
|
protectedvirtual |
Starts the Vortex application.
|
protectedvirtual |
Pauses the Vortex application.
|
protectedvirtual |
Updates Vortex until a condition is met.
| func | Function returning bool that determines when to stop updating |
|
protectedvirtual |
Updates Vortex until a specific application mode is reached.
| targetMode | The target application mode |
|
protectedvirtual |
Initializes the Vortex application.
|
protectedvirtual |
Initializes the collision manager.
| cgf | Pointer to the CGF instance |
|
staticprotected |
Static callback for pre-scenario rollback events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes pre-scenario rewind events.
|
staticprotected |
Static callback for post-scenario rollback events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes post-scenario rewind events.
|
staticprotected |
Static callback for pre-load scenario events.
| scenario | Reference to the scenario being loaded |
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes pre-load scenario events.
|
staticprotected |
Static callback for post-load scenario events.
| scenario | Reference to the loaded scenario |
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes post-load scenario events.
|
staticprotected |
Static callback for pre-load terrain events.
| scenario | Filename of the scenario being loaded |
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes pre-load terrain events.
|
staticprotected |
Static callback for post-load terrain events.
| terrain | Filename of the loaded terrain |
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes post-load terrain events.
|
staticprotected |
Static callback for pre-close scenario events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes pre-close scenario events.
|
staticprotected |
Static callback for post-close scenario events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes post-close scenario events.
|
staticprotected |
Static callback for scenario run events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes scenario run events.
|
staticprotected |
Static callback for scenario pause events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes scenario pause events.
|
staticprotected |
Static callback for post-tick initialization events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes post-tick initialization events.
|
staticprotected |
Static callback for CGF destruction events.
| data | Pointer to user data (typically the DtVortexPhysicalWorld instance) |
|
protectedvirtual |
Processes CGF destruction events.
|
staticprotected |
Static callback for ImGui rendering events.
| args | Pointer to arguments for the callback |
|
protectedvirtual |
Updates ImGui interface elements.
|
protected |
Flag indicating if CGF is being destroyed.
|
staticprotected |
Singleton instance of the physical world.
|
protected |
Pointer to the CGF instance.
|
protected |
Collision proxy generator for handling collisions.
|
protected |
Material table for physics interactions.
|
protected |
Vortex simulation module.
|
protected |
Terrain extension for Vortex.
|
protected |
Vortex scene interface.
|
protected |
Vortex application instance.
|
protected |
Simulation state for Vortex.
|
protected |
Producer for paged terrain.
|
protected |
Interface for paged terrain.
|
protected |
Vortex universe instance.
|
protected |
Plugin manager listener.
|
protected |
Thread pool for parallel processing.
|
protected |
Configuration initializer.
|
protected |
Coordinate converter for transformations.
|
protected |
|
protected |
|
protected |
Debug interface for Vortex.
|
protected |
Handler for dynamic terrain.
|
protected |
|
protected |