RavEngine
Loading...
Searching...
No Matches
physx::PxsNarrowPhaseSecondPassContactManager Struct Reference

Any sleeping contact pair that finds itself in an awake island after 1st pass island gen must participate in 2nd pass narrowphase so that contacts can be generated. More...

#include <PxsIslandManagerTypes.h>

Collaboration diagram for physx::PxsNarrowPhaseSecondPassContactManager:
[legend]

Public Attributes

PxsContactManager * mCM
 The contact manager that is to participate in 2nd pass narrowphase.
 
EdgeType mSolverCMId
 The corresponding entry in PxsIslandObjects::contactManagers.
 
EdgeType mEdgeId
 The internal id of the corresponding edge.
 

Detailed Description

Any sleeping contact pair that finds itself in an awake island after 1st pass island gen must participate in 2nd pass narrowphase so that contacts can be generated.

Note
Contact managers in sleeping pairs are NULL until PxsIslandManager::setWokenPairContactManagers is complete.
See also
PxsIslandManager::getNarrowPhaseSecondPassContactManagers, PxsIslandManager::getNumNarrowPhaseSecondPassContactManagers, PxsIslandManager::setWokenPairContactManagers

Member Data Documentation

◆ mCM

PxsContactManager* physx::PxsNarrowPhaseSecondPassContactManager::mCM

The contact manager that is to participate in 2nd pass narrowphase.

Note
This pointer is NULL after 1st pass island gen and remains NULL until PxsIslandManager::setWokenPairContactManagers completes.

◆ mSolverCMId

EdgeType physx::PxsNarrowPhaseSecondPassContactManager::mSolverCMId

The corresponding entry in PxsIslandObjects::contactManagers.

Note
All sleeping pairs have a null contact manager during 1st pass island gen. After 1st pass island gen completes, the bodies to be woken are externally processed. Waking up bodies generates contact managers and passes the pointer to the corresponding edge. So that the contact manager can be efficiently passed to PxsIslandObjects we store mEdgeId and mSolverCMId. The contact manager pointers are set in PxsIslandManager::setWokenPairContactManagers

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