Class used to retrieve statistics for a simulation step. More...
#include <PxSimulationStatistics.h>
Public Types | |
enum | VolumeType { eRIGID_BODY, ePARTICLE_SYSTEM, eCLOTH, eVOLUME_COUNT } |
Identifies each type of broadphase volume. More... | |
enum | RbPairStatsType { eDISCRETE_CONTACT_PAIRS, eCCD_PAIRS, eMODIFIED_CONTACT_PAIRS, eTRIGGER_PAIRS } |
Different types of rigid body collision pair statistics. More... | |
Public Member Functions | |
PxU32 | getNbBroadPhaseAdds (VolumeType type) const |
Get number of broadphase volumes of a certain type added for the current simulation step. More... | |
PxU32 | getNbBroadPhaseRemoves (VolumeType type) const |
Get number of broadphase volumes of a certain type removed for the current simulation step. More... | |
PxU32 | getRbPairStats (RbPairStatsType pairType, PxGeometryType::Enum g0, PxGeometryType::Enum g1) const |
Get number of shape collision pairs of a certain type processed for the current simulation step. More... | |
PxSimulationStatistics () | |
Class used to retrieve statistics for a simulation step.
Different types of rigid body collision pair statistics.
Enumerator | |
---|---|
eDISCRETE_CONTACT_PAIRS |
Shape pairs processed as discrete contact pairs for the current simulation step. |
eCCD_PAIRS |
Shape pairs processed as swept integration pairs for the current simulation step.
|
eMODIFIED_CONTACT_PAIRS |
Shape pairs processed with user contact modification enabled for the current simulation step.
|
eTRIGGER_PAIRS |
Trigger shape pairs processed for the current simulation step.
|
Identifies each type of broadphase volume.
Enumerator | |
---|---|
eRIGID_BODY |
A volume belonging to a rigid body object. |
ePARTICLE_SYSTEM |
A volume belonging to a particle system.
|
eCLOTH |
A volume belonging to a cloth.
|
eVOLUME_COUNT |
|
inline |
References PxGeometryType::eGEOMETRY_COUNT.
|
inline |
Get number of broadphase volumes of a certain type added for the current simulation step.
[in] | type | The volume type for which to get the number |
References PX_ASSERT.
|
inline |
Get number of broadphase volumes of a certain type removed for the current simulation step.
[in] | type | The volume type for which to get the number |
References PX_ASSERT.
|
inline |
Get number of shape collision pairs of a certain type processed for the current simulation step.
There is an entry for each geometry pair type.
[in] | pairType | The type of pair for which to get information |
[in] | g0 | The geometry type of one pair object |
[in] | g1 | The geometry type of the other pair object |
References PxGeometryType::eGEOMETRY_COUNT, and PX_ASSERT.
PxU32 PxSimulationStatistics::compressedContactSize |
The size (in bytes) of the compressed contact stream in the current simulation step.
PxU32 PxSimulationStatistics::nbActiveConstraints |
Number of active PxConstraint objects (joints etc.) for the current simulation step.
PxU32 PxSimulationStatistics::nbActiveDynamicBodies |
Number of active dynamic bodies for the current simulation step.
PxU32 PxSimulationStatistics::nbActiveKinematicBodies |
Number of active kinematic bodies for the current simulation step.
PxU32 PxSimulationStatistics::nbAxisSolverConstraints |
The number of 1D axis constraints(joints+contact) present in the current simulation step.
PxU32 PxSimulationStatistics::nbBroadPhaseAdds[eVOLUME_COUNT] |
PxU32 PxSimulationStatistics::nbBroadPhaseRemoves[eVOLUME_COUNT] |
PxU32 PxSimulationStatistics::nbCCDPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 PxSimulationStatistics::nbDiscreteContactPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 PxSimulationStatistics::nbDynamicBodies |
Number of dynamic bodies for the current simulation step.
PxU32 PxSimulationStatistics::nbModifiedContactPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 PxSimulationStatistics::nbShapes[PxGeometryType::eGEOMETRY_COUNT] |
Number of shapes of each geometry type.
PxU32 PxSimulationStatistics::nbStaticBodies |
Number of static bodies for the current simulation step.
PxU32 PxSimulationStatistics::nbTriggerPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxReal PxSimulationStatistics::particlesGpuMeshCacheHitrate |
PxU32 PxSimulationStatistics::particlesGpuMeshCacheSize |
PxU32 PxSimulationStatistics::particlesGpuMeshCacheUsed |
PxU32 PxSimulationStatistics::peakConstraintMemory |
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation step.
PxU32 PxSimulationStatistics::requiredContactConstraintMemory |
The total required size (in bytes) of the contact constraints in the current simulation step.
PxU32 PxSimulationStatistics::totalDiscreteContactPairsAnyShape |