VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVortexCollisionDynamicsExtension Class Reference

Detailed Description

The Vortex Collision Dynamics Extension classifies local parts, collects detected collisions between them, computes impulses to apply to remote proxies, and sends/receives those remote impulse messages.

This class extends Vortex's VxDynamicsExtension, and utilizes extensions of Vortex's IntersectSubscriber and UniverseObserver

This extension has three classifications of parts, these are assigned using the tagGeometryAs... methods for each type. Proxy: Inactive parts that either are not currently, or are unable to be simulated by Vortex. These can include fallback boxes. These have the proxy response type, which is used as a flag to configure the intersect subscriber Vortex: Active parts that are simulated by Vortex, on the local sim engine. These have the rigid body response type, which is used as a flag to configure the intersect subscriber Sensor: Active parts that are simulated by Vortex, but are not simulated on the local. These have the contact sensor response type, and do not have the rigid body response model

These three classifications are used in two pairs: Proxy <-> Vortex, and Sensor <-> Vortex. Each pair has its own intersect subscriber, which is used to collect contacts between the two classifications.

The PROXY subscriber will simply collect and store contacts, which are only used for CollisionEvents. The SENSOR subscriber will collect contacts, pass them into Vortex for local impulse, and calculate a remote impulse to send and apply.

#include <vortexCollisionDynamicsExtension.h>

Inheritance diagram for makVre::DtVortexCollisionDynamicsExtension:
[legend]

Classes

struct  ContactData
 
struct  ReceivedMessage
 

Public Member Functions

 DtVortexCollisionDynamicsExtension ()
 
 ~DtVortexCollisionDynamicsExtension ()
 
void detachFromUniverse (Vx::VxUniverse *universe)
 
 DtVortexCollisionDynamicsExtension (const DtVortexCollisionDynamicsExtension &)=delete
 
DtVortexCollisionDynamicsExtension & operator= (const DtVortexCollisionDynamicsExtension &)=delete
 
 DtVortexCollisionDynamicsExtension (DtVortexCollisionDynamicsExtension &&)=delete
 
DtVortexCollisionDynamicsExtension & operator= (DtVortexCollisionDynamicsExtension &&)=delete
 
virtual void preStep () override
 
virtual void step () override
 
virtual void postStep () override
 
virtual void tagGeometryAsProxy (Vx::VxCollisionGeometry *geo)
 
virtual void tagGeometryAsVortex (Vx::VxCollisionGeometry *geo)
 
virtual void tagGeometryAsVortex (Vx::VxCollisionGeometry *geo, DtUUID uuid)
 
virtual void tagGeometryAsSensor (Vx::VxCollisionGeometry *geo, DtUUID uuid)
 
virtual void tagGeometryAsSensor (Vx::VxCollisionGeometry *geo)
 
virtual void removeVortexPart (Vx::VxPart *part)
 
virtual DtVreMessageResult handleReceivedCollision (DtVreMessage *message)
 
virtual void sendCollisionMessage (const ContactData &data)
 
const std::vector< ContactData > & getProxyContacts () const
 
const std::vector< ContactData > & getSensorContacts () const
 
Vx::ResponseType getProxyResponseType ()
 
Vx::ResponseType getVortexResponseType ()
 
Vx::ResponseType getSensorResponseType ()
 
DtVortexPhysicalWorld * getVortexPhysicalWorld ()
 
bool networkCollisionEnabled ()
 
void renderImgui ()
 
DtUUID getVortexUUIDFromPart (Vx::VxPart *part)
 
Vx::VxPart * resolvePartForGeometry (Vx::VxCollisionGeometry *geo)
 
void logResponseIDsForPart (Vx::VxPart *part, const char *label="")
 

Protected Member Functions

bool initializeIfPossible ()
 
void flushDeferredGeometryAssignments ()
 
void tagGeometryWithResponse (Vx::VxCollisionGeometry *geo, Vx::ResponseType responseType, std::vector< Vx::VxCollisionGeometry * > &deferredList)
 
void registerPartUuidForGeometry (Vx::VxCollisionGeometry *geo, const DtUUID &uuid)
 
void processReceivedMessages ()
 
void applyImpulse (const DtVector &impulse, const DtVector &position, const DtUUID &uuid, const std::string &partName)
 
Vx::VxPart * findPartForApplication (const DtUUID &uuid, const std::string &partName, const DtSimObject *entity)
 
DtVector calculateImpulseFromContact (const ContactData &data, Vx::VxPart *localPart)
 
double calculateReducedMass (Vx::VxPart *remotePart, Vx::VxPart *localPart, Vx::VxVector3 normal, Vx::VxVector3 position)
 
int handlePartUUIDsForMessage (Vx::VxPart *part0, Vx::VxPart *part1, VortexCollisionMessage *message)
 
void worldPosToVortexFrame (const DtVector &worldPos, DtVector &vortexPosOut)
 
bool getPosEntityRelativeVortex (Vx::VxPart *part, DtVector &outpos, Vx::VxVector3 &worldPos)
 

Static Protected Member Functions

static bool invertVxReal33 (const Vx::VxReal33 &m, Vx::VxReal33 &invOut, double eps=1e-12)
 

Protected Attributes

bool myInitialized
 
DtVortexPhysicalWorld * myVortexPhysicalWorld
 
Vx::ResponseType myProxyResponseType
 
Vx::ResponseType myVortexResponseType
 
Vx::ResponseType mySensorResponseType
 
int myRequestId
 
std::unique_ptr< DtVortexIntersectSubscriber > myProxyIntersectSubscriber
 
std::unique_ptr< DtVortexIntersectSubscriber > mySensorIntersectSubscriber
 
std::vector< ContactData > myProxyContacts
 
std::vector< ContactData > mySensorContacts
 
DtVortexUniverseObserver myUniverseObserver
 
std::vector< Vx::VxCollisionGeometry * > myDeferredProxyGeometries
 
std::vector< Vx::VxCollisionGeometry * > myDeferredVortexGeometries
 
std::vector< Vx::VxCollisionGeometry * > myDeferredSensorGeometries
 
std::unordered_map< Vx::VxPart *, DtUUID > myVortexPartUUIDMap
 
std::map< std::pair< DtUUID, std::string >, Vx::VxPart * > myUUIDPartMap
 
std::unordered_map< Vx::VxCollisionGeometry *, Vx::VxPart * > myGeometryPartMap
 
std::mutex myVortexPartUUIDMapMutex
 
std::unordered_map< DtUUID, double > myLastCollisionTimeMap
 
double myMaxCollisionLatency = 0.15
 
std::map< std::pair< DtUUID, std::string >, VxMath::Vector3 > myCachedImpulses
 
std::map< std::pair< DtUUID, std::string >, VxMath::Vector3 > myCachedImpulsesNextFrame
 
std::deque< ReceivedMessage > myReceivedMessages
 
std::mutex myReceivedMessagesMutex
 
bool myUniverseObserverRegistered {false}
 
Physics tuning parameters

These fields are all configurable in vortexConfig.lua, to allow for tuning the physics reactions The three fields related to impulse generation (BaumgarteFraction, BaumgarteSquared, Restitution) are all adjustable per sim-engine from the remote debugger, however, those values do not persist. When tuning, if needed, the most important number is myBaumgarteFraction, tune it first until collisions are decent. Increase myBaumgarteSquared if the entities are still penetrating too far/resolution is slow. Increase myRestitution to make the collisions more elastic Decrease myMaxSeparationVelocityForApplication if the entities are being flung too far apart, and if impulses continue to be applied after separation. myWarmStartFraction is probably the least significant parameter, but increasing it should make collisions smoother/prolong their effects.

double myBaumgarteFraction = 0.75
 
double myBaumgarteSquared = 1.0
 
double myRestitution = 0.1
 
double myWarmStartFraction
 
double myMaxSeparationVelocityForApplication
 
bool myEnableNetworkedCollisions = true
 

Constructor & Destructor Documentation

◆ DtVortexCollisionDynamicsExtension() [1/3]

makVre::DtVortexCollisionDynamicsExtension::DtVortexCollisionDynamicsExtension ( )

◆ ~DtVortexCollisionDynamicsExtension()

makVre::DtVortexCollisionDynamicsExtension::~DtVortexCollisionDynamicsExtension ( )

Destructor.

◆ DtVortexCollisionDynamicsExtension() [2/3]

makVre::DtVortexCollisionDynamicsExtension::DtVortexCollisionDynamicsExtension ( const DtVortexCollisionDynamicsExtension & )
delete

Copy construction is disabled.

References DtVortexCollisionDynamicsExtension().

◆ DtVortexCollisionDynamicsExtension() [3/3]

makVre::DtVortexCollisionDynamicsExtension::DtVortexCollisionDynamicsExtension ( DtVortexCollisionDynamicsExtension && )
delete

Move construction is disabled.

References DtVortexCollisionDynamicsExtension().

Member Function Documentation

◆ detachFromUniverse()

void makVre::DtVortexCollisionDynamicsExtension::detachFromUniverse ( Vx::VxUniverse * universe)

Detaches this extension's observer and clears its user dynamics contacts from universe.

Parameters
universeUniverse currently owning this extension.

◆ operator=() [1/2]

DtVortexCollisionDynamicsExtension & makVre::DtVortexCollisionDynamicsExtension::operator= ( const DtVortexCollisionDynamicsExtension & )
delete

Copy assignment is disabled.

References DtVortexCollisionDynamicsExtension().

◆ operator=() [2/2]

DtVortexCollisionDynamicsExtension & makVre::DtVortexCollisionDynamicsExtension::operator= ( DtVortexCollisionDynamicsExtension && )
delete

Move assignment is disabled.

References DtVortexCollisionDynamicsExtension().

◆ preStep()

virtual void makVre::DtVortexCollisionDynamicsExtension::preStep ( )
overridevirtual

Clears per-step contact state before simulation advances.

◆ step()

virtual void makVre::DtVortexCollisionDynamicsExtension::step ( )
overridevirtual

Initializes the extension on demand and processes queued remote collision messages.

◆ postStep()

virtual void makVre::DtVortexCollisionDynamicsExtension::postStep ( )
overridevirtual

Sends or applies collision impulses for contacts collected during the step.

◆ tagGeometryAsProxy()

virtual void makVre::DtVortexCollisionDynamicsExtension::tagGeometryAsProxy ( Vx::VxCollisionGeometry * geo)
virtual

Registers proxy collision geometry with this extension.

If the universe is not yet available, the geometry is queued for deferred assignment once the universe is initialized.

Parameters
geoGeometry to configure for proxy-vs-Vortex collision collection.

◆ tagGeometryAsVortex() [1/2]

virtual void makVre::DtVortexCollisionDynamicsExtension::tagGeometryAsVortex ( Vx::VxCollisionGeometry * geo)
virtual

Registers Vortex collision geometry with this extension.

If the universe is not yet available, the geometry is queued for deferred assignment once the universe is initialized.

Parameters
geoGeometry to configure for Vortex collision collection.

◆ tagGeometryAsVortex() [2/2]

virtual void makVre::DtVortexCollisionDynamicsExtension::tagGeometryAsVortex ( Vx::VxCollisionGeometry * geo,
DtUUID uuid )
virtual

Registers Vortex collision geometry and associates its part with a simulation UUID.

If the universe is not yet available, the geometry is queued for deferred assignment once the universe is initialized.

Parameters
geoGeometry to configure for Vortex collision collection.
uuidUUID of the owning simulation object.

◆ tagGeometryAsSensor() [1/2]

virtual void makVre::DtVortexCollisionDynamicsExtension::tagGeometryAsSensor ( Vx::VxCollisionGeometry * geo,
DtUUID uuid )
virtual

Registers sensor collision geometry with this extension, and associates its part with a simulation UUID.

If the universe is not yet available, the geometry is queued for deferred assignment once the universe is initialized.

Parameters
geoGeometry to configure for sensor collision collection.
uuidUUID of the owning simulation object.

◆ tagGeometryAsSensor() [2/2]

virtual void makVre::DtVortexCollisionDynamicsExtension::tagGeometryAsSensor ( Vx::VxCollisionGeometry * geo)
virtual

Registers sensor collision geometry with this extension.

If the universe is not yet available, the geometry is queued for deferred assignment once the universe is initialized.

Parameters
geoGeometry to configure for sensor collision collection.

◆ removeVortexPart()

virtual void makVre::DtVortexCollisionDynamicsExtension::removeVortexPart ( Vx::VxPart * part)
virtual

Removes a cached Vortex part-to-UUID mapping.

Parameters
partPart to remove from the mapping table.

◆ handleReceivedCollision()

virtual DtVreMessageResult makVre::DtVortexCollisionDynamicsExtension::handleReceivedCollision ( DtVreMessage * message)
virtual

Handles an incoming collision message from the message manager.

Parameters
messageIncoming message payload.
Returns
HANDLED when accepted for deferred processing; IGNORED otherwise.

◆ sendCollisionMessage()

virtual void makVre::DtVortexCollisionDynamicsExtension::sendCollisionMessage ( const ContactData & data)
virtual

Creates and queues a collision message from a Vortex contact.

Parameters
dataContactData used to build the outgoing message.

◆ getProxyContacts()

const std::vector< ContactData > & makVre::DtVortexCollisionDynamicsExtension::getProxyContacts ( ) const

Returns proxy-vs-Vortex contacts collected for the current step.

Returns
Non-owning reference to the current proxy contact list.

◆ getSensorContacts()

const std::vector< ContactData > & makVre::DtVortexCollisionDynamicsExtension::getSensorContacts ( ) const

Returns Vortex-vs-Vortex contacts collected for the current step.

Returns
Non-owning reference to the current Vortex contact list.

◆ getProxyResponseType()

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::getProxyResponseType ( )

Gets the response type used for proxy geometries.

Returns
Vortex response type ID assigned to proxy geometries.

◆ getVortexResponseType()

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::getVortexResponseType ( )

Gets the response type used for Vortex geometries.

Returns
Vortex response type ID assigned to Vortex geometries.

◆ getSensorResponseType()

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::getSensorResponseType ( )

Gets the response type used for sensor (remotely active Vortex vehicle) geometries.

Returns
Vortex response type ID assigned to sensor geometries

◆ getVortexPhysicalWorld()

DtVortexPhysicalWorld * makVre::DtVortexCollisionDynamicsExtension::getVortexPhysicalWorld ( )

Gets the Vortex Physical World singleton used by this extension.

Returns
Pointer to the Vortex Physical World singleton.

◆ networkCollisionEnabled()

bool makVre::DtVortexCollisionDynamicsExtension::networkCollisionEnabled ( )
inline

Returns whether networked collision messages are enabled.

Returns
True if networked collision messages are enabled, false otherwise.

References myEnableNetworkedCollisions, and myInitialized.

◆ renderImgui()

void makVre::DtVortexCollisionDynamicsExtension::renderImgui ( )

Renders ImGui controls for tuning collision physics parameters.

◆ getVortexUUIDFromPart()

DtUUID makVre::DtVortexCollisionDynamicsExtension::getVortexUUIDFromPart ( Vx::VxPart * part)

Looks up the simulation UUID mapped to a Vortex part.

Parameters
partPart whose UUID is requested.
Returns
Mapped UUID, or DtUUID::nullUUID() when no mapping exists.

◆ resolvePartForGeometry()

Vx::VxPart * makVre::DtVortexCollisionDynamicsExtension::resolvePartForGeometry ( Vx::VxCollisionGeometry * geo)

Resolves the owning VxPart for a collision geometry, falling back to the geometry->part map populated during tagging when the geometry is a leaf child of a VxCompositeCollisionGeometry and its own getPart() returns null.

Note
Diagnostic helper only
Parameters
geoCollision geometry to resolve.
Returns
Owning part, or nullptr when no part can be resolved.

◆ logResponseIDsForPart()

void makVre::DtVortexCollisionDynamicsExtension::logResponseIDsForPart ( Vx::VxPart * part,
const char * label = "" )

Logs the assigned response IDs for every collision geometry on a part, recursing into composite geometries. Intended for debugging tagging and subscription issues; compares each ID against proxyResponseType, vortexResponseType, and kResponseSensorContact and annotates matches.

Note
Diagnostic helper only
Parameters
partPart whose geometries should be logged.
labelOptional label prefixed to each log line.

◆ initializeIfPossible()

bool makVre::DtVortexCollisionDynamicsExtension::initializeIfPossible ( )
protected

Initializes response models, subscribers, and requests once a universe is available.

Returns
True when initialization is complete.

◆ flushDeferredGeometryAssignments()

void makVre::DtVortexCollisionDynamicsExtension::flushDeferredGeometryAssignments ( )
protected

Applies response/request IDs to geometries queued before initialization completed.

◆ tagGeometryWithResponse()

void makVre::DtVortexCollisionDynamicsExtension::tagGeometryWithResponse ( Vx::VxCollisionGeometry * geo,
Vx::ResponseType responseType,
std::vector< Vx::VxCollisionGeometry * > & deferredList )
protected

Tags a geometry tree with the given response ID, deferring until initialization completes.

Parameters
geoRoot collision geometry to tag.
responseTypeResponse ID to assign to each leaf geometry.
deferredListList to queue the geometry on when the universe is not yet available.

◆ registerPartUuidForGeometry()

void makVre::DtVortexCollisionDynamicsExtension::registerPartUuidForGeometry ( Vx::VxCollisionGeometry * geo,
const DtUUID & uuid )
protected

Maps a geometry's owning part to a simulation UUID under both part lookup maps.

Parameters
geoGeometry whose owning part should be registered.
uuidSimulation UUID to associate with the part.

◆ processReceivedMessages()

void makVre::DtVortexCollisionDynamicsExtension::processReceivedMessages ( )
protected

Drains queued received messages and applies their impulses to mapped local parts.

◆ applyImpulse()

void makVre::DtVortexCollisionDynamicsExtension::applyImpulse ( const DtVector & impulse,
const DtVector & position,
const DtUUID & uuid,
const std::string & partName )
protected

Applies an impulse to a local Vortex part identified by UUID and part name.

Used to apply impulses for both received and locally generated collisions.

Parameters
impulseImpulse vector in Vortex world frame (NWU).
positionContact position expressed as the offset from the target entity's origin, in Vortex world axes (NOT rotated into any part's body frame). Must match the packing done by sendCollisionMessage().
uuidUUID of the target part's simulation object.
partNameName of the target part.

◆ findPartForApplication()

Vx::VxPart * makVre::DtVortexCollisionDynamicsExtension::findPartForApplication ( const DtUUID & uuid,
const std::string & partName,
const DtSimObject * entity )
protected

Looks up a Vortex part by simulation UUID and part name.

Parameters
uuidSimulation UUID of the owning object.
partNameName of the part to find.
entityNon-null owning simulation object whose published VortexArtPartMap supplies the fallback chassis part name when the requested part is not mapped.
Returns
Non-owning pointer to the requested part or fallback chassis part, or nullptr if neither is mapped.

◆ calculateImpulseFromContact()

DtVector makVre::DtVortexCollisionDynamicsExtension::calculateImpulseFromContact ( const ContactData & data,
Vx::VxPart * localPart )
protected

Computes an impulse vector from a Vortex contact for a designated local part.

The impulse magnitude is based on the local part's mass only, so the result is independent of the sensor proxy mass (which is unreliable for remote Vortex vehicles). The caller is responsible for negating the result to obtain the reaction impulse for the remote side.

Parameters
dataSource contact inside ContactData struct.
localPartPart that should receive the resulting impulse direction/sign convention.
Returns
Impulse vector in world coordinates, scaled by the local part's mass.

◆ calculateReducedMass()

double makVre::DtVortexCollisionDynamicsExtension::calculateReducedMass ( Vx::VxPart * remotePart,
Vx::VxPart * localPart,
Vx::VxVector3 normal,
Vx::VxVector3 position )
protected

Calculates the reduced mass for physics calculation of a collision between two parts.

Parameters
remotePartPointer to the remote Vortex part involved in the collision.
localPartPointer to the local Vortex part involved in the collision.
normalCollision normal vector.
positionCollision position vector.
Returns
Reduced mass value for the collision

◆ handlePartUUIDsForMessage()

int makVre::DtVortexCollisionDynamicsExtension::handlePartUUIDsForMessage ( Vx::VxPart * part0,
Vx::VxPart * part1,
VortexCollisionMessage * message )
protected

Sets message UUID fields and identifies which part is remote for message application.

Parameters
part0First part in the contact pair.
part1Second part in the contact pair.
messageMessage to populate.
Returns
0 when part0 is remote, 1 when part1 is remote, or -1 on error.

◆ invertVxReal33()

static bool makVre::DtVortexCollisionDynamicsExtension::invertVxReal33 ( const Vx::VxReal33 & m,
Vx::VxReal33 & invOut,
double eps = 1e-12 )
staticprotected

Inverts a 3x3 matrix, returning false if the determinant is too small.

Parameters
mInput matrix to invert.
invOutOutput matrix to receive the inverse.
epsThreshold for determinant magnitude below which the matrix is considered singular.

◆ worldPosToVortexFrame()

void makVre::DtVortexCollisionDynamicsExtension::worldPosToVortexFrame ( const DtVector & worldPos,
DtVector & vortexPosOut )
protected

Converts a world position to the Vortex frame, accounting for coordinate system differences.

Parameters
worldPosPosition in the world frame
vortexPosOutOutput position in the Vortex frame

◆ getPosEntityRelativeVortex()

bool makVre::DtVortexCollisionDynamicsExtension::getPosEntityRelativeVortex ( Vx::VxPart * part,
DtVector & outpos,
Vx::VxVector3 & worldPos )
protected

Converts a world position to a Vortex coordinate frame, entity centered, format.

Converts a position in Vortex world coordinates (worldPos), to an entity centered position in the world frame (outpos), which is still in vortex coordinates

Parameters
partPointer to the Vortex part whose frame is used for the relative position.
outposOutput position in the world frame, relative to the part's origin.
worldPosPosition in the Vortex frame to be converted (eg. of the collision)
Returns
True if the conversion was successful, false if the part is null or has no transform.

Member Data Documentation

◆ myInitialized

bool makVre::DtVortexCollisionDynamicsExtension::myInitialized
protected

True once response models, requests, and subscribers have been initialized.

Referenced by networkCollisionEnabled().

◆ myVortexPhysicalWorld

DtVortexPhysicalWorld* makVre::DtVortexCollisionDynamicsExtension::myVortexPhysicalWorld
protected

Back-pointer to the global Vortex physical world singleton.

◆ myProxyResponseType

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::myProxyResponseType
protected

Response ID for box-proxy geometries (non-Vortex vehicles). Produces real dynamics contacts against Vortex vehicles.

◆ myVortexResponseType

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::myVortexResponseType
protected

Response ID for local Vortex-vehicle geometries. Pairs with myProxyResponseType (solver contacts) and mySensorResponseType (sensor contacts for remote Vortex peers, resolved via message exchange).

◆ mySensorResponseType

Vx::ResponseType makVre::DtVortexCollisionDynamicsExtension::mySensorResponseType
protected

Response ID for local proxies of vehicles that actively simulated on a remote sim engine Used to filter intersect detections against remote proxies.

◆ myRequestId

int makVre::DtVortexCollisionDynamicsExtension::myRequestId
protected

Universe collision request ID shared by proxy and Vortex geometries.

◆ myBaumgarteFraction

double makVre::DtVortexCollisionDynamicsExtension::myBaumgarteFraction = 0.75
protected

Fraction of penetration depth to resolve per step (Baumgarte linear term).

◆ myBaumgarteSquared

double makVre::DtVortexCollisionDynamicsExtension::myBaumgarteSquared = 1.0
protected

Coefficient for quadratic penetration correction term.

◆ myRestitution

double makVre::DtVortexCollisionDynamicsExtension::myRestitution = 0.1
protected

Coefficient of restitution (0 = inelastic, 1 = elastic).

◆ myWarmStartFraction

double makVre::DtVortexCollisionDynamicsExtension::myWarmStartFraction
protected
Initial value:
=
0.8

Fraction of previous impulse applied as warm start; smooths out impulse application.

◆ myMaxSeparationVelocityForApplication

double makVre::DtVortexCollisionDynamicsExtension::myMaxSeparationVelocityForApplication
protected
Initial value:
=
2

Maximum separation velocity for which impulses will be applied. Prevents applying impulses to parts that are separating too fast.

◆ myEnableNetworkedCollisions

bool makVre::DtVortexCollisionDynamicsExtension::myEnableNetworkedCollisions = true
protected

Whether collision impulses are exchanged over the network.

Referenced by networkCollisionEnabled().

◆ myProxyIntersectSubscriber

std::unique_ptr<DtVortexIntersectSubscriber> makVre::DtVortexCollisionDynamicsExtension::myProxyIntersectSubscriber
protected

Subscriber for proxy-vs-Vortex contact events.

◆ mySensorIntersectSubscriber

std::unique_ptr<DtVortexIntersectSubscriber> makVre::DtVortexCollisionDynamicsExtension::mySensorIntersectSubscriber
protected

Subscriber for Vortex-vs-Vortex contact events.

◆ myProxyContacts

std::vector<ContactData> makVre::DtVortexCollisionDynamicsExtension::myProxyContacts
protected

Contacts collected for proxy-vs-Vortex collisions this step.

◆ mySensorContacts

std::vector<ContactData> makVre::DtVortexCollisionDynamicsExtension::mySensorContacts
protected

Contacts collected for Vortex-vs-Vortex collisions this step.

◆ myUniverseObserver

DtVortexUniverseObserver makVre::DtVortexCollisionDynamicsExtension::myUniverseObserver
protected

Universe observer used to clean up part mappings on part removal.

◆ myDeferredProxyGeometries

std::vector<Vx::VxCollisionGeometry*> makVre::DtVortexCollisionDynamicsExtension::myDeferredProxyGeometries
protected

Proxy geometries queued before initialization.

◆ myDeferredVortexGeometries

std::vector<Vx::VxCollisionGeometry*> makVre::DtVortexCollisionDynamicsExtension::myDeferredVortexGeometries
protected

Vortex geometries queued before initialization.

◆ myDeferredSensorGeometries

std::vector<Vx::VxCollisionGeometry*> makVre::DtVortexCollisionDynamicsExtension::myDeferredSensorGeometries
protected

Sensor geometries queued before initialization.

◆ myVortexPartUUIDMap

std::unordered_map<Vx::VxPart*, DtUUID> makVre::DtVortexCollisionDynamicsExtension::myVortexPartUUIDMap
protected

Mapping from Vortex part pointer to simulation UUID.

◆ myUUIDPartMap

std::map<std::pair<DtUUID, std::string>, Vx::VxPart*> makVre::DtVortexCollisionDynamicsExtension::myUUIDPartMap
protected

Reverse mapping from (UUID, partName) to Vortex part pointer.

◆ myGeometryPartMap

std::unordered_map<Vx::VxCollisionGeometry*, Vx::VxPart*> makVre::DtVortexCollisionDynamicsExtension::myGeometryPartMap
protected

Mapping from a leaf collision geometry (typically a child of a VxCompositeCollisionGeometry, whose getPart() returns null) to the owning VxPart. Populated when geometries are tagged for the collision subscriber so that contact reports referencing composite child geoms can still be resolved back to a part.

◆ myVortexPartUUIDMapMutex

std::mutex makVre::DtVortexCollisionDynamicsExtension::myVortexPartUUIDMapMutex
protected

Mutex protecting myVortexPartUUIDMap.

◆ myLastCollisionTimeMap

std::unordered_map<DtUUID, double> makVre::DtVortexCollisionDynamicsExtension::myLastCollisionTimeMap
protected

Last known collision simulation time for each UUID.

◆ myMaxCollisionLatency

double makVre::DtVortexCollisionDynamicsExtension::myMaxCollisionLatency = 0.15
protected

Max age (seconds) of an incoming remote collision message before discard. Overridable via vortexSettings.collisionProxy.maxCollisionImpulseLatency.

◆ myCachedImpulses

std::map<std::pair<DtUUID, std::string>, VxMath::Vector3> makVre::DtVortexCollisionDynamicsExtension::myCachedImpulses
protected

Warm-start impulse cache keyed by UUID/part for the current frame.

◆ myCachedImpulsesNextFrame

std::map<std::pair<DtUUID, std::string>, VxMath::Vector3> makVre::DtVortexCollisionDynamicsExtension::myCachedImpulsesNextFrame
protected

Warm-start impulse cache built for use on the next frame.

◆ myReceivedMessages

std::deque<ReceivedMessage> makVre::DtVortexCollisionDynamicsExtension::myReceivedMessages
protected

Queue of received messages waiting to be processed in step().

◆ myReceivedMessagesMutex

std::mutex makVre::DtVortexCollisionDynamicsExtension::myReceivedMessagesMutex
protected

Mutex protecting myReceivedMessages.

◆ myUniverseObserverRegistered

bool makVre::DtVortexCollisionDynamicsExtension::myUniverseObserverRegistered {false}
protected

Indicates whether the universe observer is registered.


The documentation for this class was generated from the following file: