VR-Engage  2.3
Loading...
Searching...
No Matches
vreVrfVortex Library API Changes

This page covers Vortex extension APIs and collision behavior. Review custom physics subclasses and their system definitions together.

Breaking changes

Proxy collision override

vortexCollisionProxyGenerator.h changes the protected hook handleVortexCollision(Vx::VxPart*, Vx::VxPart*) to handleVortexCollision(Vx::VxDynamicsContact*). Update overrides to inspect the contact object instead of two part arguments. The generator also replaces its protected DtVrfProxyVehicle record with ProxyRecord; derived classes that name the old record must adapt. Use setMaxNumProxyVehicles(int), setSearchRadius(double), and setDefaultProxyMass(double) to tune proxy generation.

Movement and part extension points

vortexMovementActuator.h replaces DtVortexMovementActuator::updateParametersFromModel() with the virtual initParametersFromModel() hook. Rename derived overrides and call the base implementation to retain standard model parameter loading. vortexPart.h changes DtVortexDynamicsPart::wheelRadius() to wheelRadius() const; update exact-signature wrappers.

Vortex interface element overrides

vortexInterface.h makes DtVortexInterfaceBaseElement::getField() const pure virtual. Implement it in custom element subclasses. The interface also adds the pure virtual addFieldObserver(const DtVortexInterfaceFieldCallback&). Implement both hooks before instantiating a derived interface element.

Additions

Network collision extension

vortexCollisionDynamicsExtension.h adds DtVortexCollisionDynamicsExtension. It classifies geometries for proxy, Vortex, and sensor collision handling. Use tagGeometryAsProxy(Vx::VxCollisionGeometry*) or tagGeometryAsVortex(Vx::VxCollisionGeometry*, DtUUID) to register geometry with the extension. vortexPhysicalWorld.h exposes it through collisionDynamicsExtension().

Terrain materials and interface fields

surfaceToVxMaterialMapper.h adds isInitialized() const and materialMappings() const. The latter returns std::vector<VortexSurfaceMaterialMapping> snapshots, including configured mapping rules and resolved materials. Do not retain the non-owning material pointers after the underlying Vortex material table is destroyed.

DtVortexInterface::addInputElementObserver() and addOutputElementObserver() take an element name and a DtVortexInterfaceFieldCallback. Retain the returned VxData::DelegateConnection to manage the observer lifetime. DtVortexInterfaceVectorElement<T> adds setIsOffsetVector(bool) and setUseWorldCoords(bool) for vector-field conversion. See vreVrfVortexObjparam Library API Changes for descriptor settings.

Dynamic terrain reset

vortexPhysicalWorld.h and vortexPagedTerrain.h add resetDynamicTerrain() hooks. They stop pending dynamic terrain work before collision geometry is removed. Preserve these hooks when subclassing either implementation for scenario reset or shutdown.

Physics transition timing

The Vortex movement actuator now supports a delayed physics-disable transition. vreVrfVortexObjparam/vortexMovementActuatorDescriptor.h defines vortex-physics-disable-delay-seconds; its default is two seconds. Set it to zero to retain immediate disable behavior. Enabling physics remains immediate. The descriptor API is documented in vreVrfVortexObjparam Library API Changes.