-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxSimulationStatisticsarrayGet(long baseAddress, int index) voiddestroy()intThe size (in bytes) of the compressed contact stream in the current simulation stepintNumber of active PxConstraint objects (joints etc.) for the current simulation step.intNumber of active dynamic bodies for the current simulation step.intNumber of active kinematic bodies for the current simulation step.intNumber of aggregates in the scene.intNumber of articulations in the scene.intThe number of 1D axis constraints(joints+contact) present in the current simulation step.intintintTotal number of (non CCD) pairs reaching narrow phaseintTotal number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal) Note: This includes pairs for which no contacts are generated, it still counts as a cache hit.intTotal number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal)intNumber of dynamic bodies for the current simulation step.intNumber of kinematic bodies for the current simulation step.intNumber of lost pairs from BP this frameintNumber of lost touches from NP this frameintNumber of new pairs found by BP this frameintNumber of new touches found by NP this frameintNumber of partitions used by the solver this frameintgetNbShapes(int index) intNumber of static bodies for the current simulation step.intThe peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation stepintThe total required size (in bytes) of the contact constraints in the current simulation stepvoidsetCompressedContactSize(int value) The size (in bytes) of the compressed contact stream in the current simulation stepvoidsetNbActiveConstraints(int value) Number of active PxConstraint objects (joints etc.) for the current simulation step.voidsetNbActiveDynamicBodies(int value) Number of active dynamic bodies for the current simulation step.voidsetNbActiveKinematicBodies(int value) Number of active kinematic bodies for the current simulation step.voidsetNbAggregates(int value) Number of aggregates in the scene.voidsetNbArticulations(int value) Number of articulations in the scene.voidsetNbAxisSolverConstraints(int value) The number of 1D axis constraints(joints+contact) present in the current simulation step.voidsetNbBroadPhaseAdds(int value) voidsetNbBroadPhaseRemoves(int value) voidsetNbDiscreteContactPairsTotal(int value) Total number of (non CCD) pairs reaching narrow phasevoidsetNbDiscreteContactPairsWithCacheHits(int value) Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal) Note: This includes pairs for which no contacts are generated, it still counts as a cache hit.voidsetNbDiscreteContactPairsWithContacts(int value) Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal)voidsetNbDynamicBodies(int value) Number of dynamic bodies for the current simulation step.voidsetNbKinematicBodies(int value) Number of kinematic bodies for the current simulation step.voidsetNbLostPairs(int value) Number of lost pairs from BP this framevoidsetNbLostTouches(int value) Number of lost touches from NP this framevoidsetNbNewPairs(int value) Number of new pairs found by BP this framevoidsetNbNewTouches(int value) Number of new touches found by NP this framevoidsetNbPartitions(int value) Number of partitions used by the solver this framevoidsetNbShapes(int index, int value) voidsetNbStaticBodies(int value) Number of static bodies for the current simulation step.voidsetPeakConstraintMemory(int value) The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation stepvoidsetRequiredContactConstraintMemory(int value) The total required size (in bytes) of the contact constraints in the current simulation stepstatic PxSimulationStatisticswrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxSimulationStatistics
protected PxSimulationStatistics() -
PxSimulationStatistics
protected PxSimulationStatistics(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getNbActiveConstraints
public int getNbActiveConstraints()Number of active PxConstraint objects (joints etc.) for the current simulation step. -
setNbActiveConstraints
public void setNbActiveConstraints(int value) Number of active PxConstraint objects (joints etc.) for the current simulation step. -
getNbActiveDynamicBodies
public int getNbActiveDynamicBodies()Number of active dynamic bodies for the current simulation step.Note: Does not include active kinematic bodies
-
setNbActiveDynamicBodies
public void setNbActiveDynamicBodies(int value) Number of active dynamic bodies for the current simulation step.Note: Does not include active kinematic bodies
-
getNbActiveKinematicBodies
public int getNbActiveKinematicBodies()Number of active kinematic bodies for the current simulation step.Note: Kinematic deactivation occurs at the end of the frame after the last call to PxRigidDynamic::setKinematicTarget() was called so kinematics that are deactivated in a given frame will be included by this counter.
-
setNbActiveKinematicBodies
public void setNbActiveKinematicBodies(int value) Number of active kinematic bodies for the current simulation step.Note: Kinematic deactivation occurs at the end of the frame after the last call to PxRigidDynamic::setKinematicTarget() was called so kinematics that are deactivated in a given frame will be included by this counter.
-
getNbStaticBodies
public int getNbStaticBodies()Number of static bodies for the current simulation step. -
setNbStaticBodies
public void setNbStaticBodies(int value) Number of static bodies for the current simulation step. -
getNbDynamicBodies
public int getNbDynamicBodies()Number of dynamic bodies for the current simulation step.Note: Includes inactive bodies and articulation links Note: Does not include kinematic bodies
-
setNbDynamicBodies
public void setNbDynamicBodies(int value) Number of dynamic bodies for the current simulation step.Note: Includes inactive bodies and articulation links Note: Does not include kinematic bodies
-
getNbKinematicBodies
public int getNbKinematicBodies()Number of kinematic bodies for the current simulation step.Note: Includes inactive bodies
-
setNbKinematicBodies
public void setNbKinematicBodies(int value) Number of kinematic bodies for the current simulation step.Note: Includes inactive bodies
-
getNbShapes
public int getNbShapes(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: unsigned long
-
setNbShapes
public void setNbShapes(int index, int value) - Parameters:
index- Array indexvalue- WebIDL type: unsigned long
-
getNbAggregates
public int getNbAggregates()Number of aggregates in the scene. -
setNbAggregates
public void setNbAggregates(int value) Number of aggregates in the scene. -
getNbArticulations
public int getNbArticulations()Number of articulations in the scene. -
setNbArticulations
public void setNbArticulations(int value) Number of articulations in the scene. -
getNbAxisSolverConstraints
public int getNbAxisSolverConstraints()The number of 1D axis constraints(joints+contact) present in the current simulation step. -
setNbAxisSolverConstraints
public void setNbAxisSolverConstraints(int value) The number of 1D axis constraints(joints+contact) present in the current simulation step. -
getCompressedContactSize
public int getCompressedContactSize()The size (in bytes) of the compressed contact stream in the current simulation step -
setCompressedContactSize
public void setCompressedContactSize(int value) The size (in bytes) of the compressed contact stream in the current simulation step -
getRequiredContactConstraintMemory
public int getRequiredContactConstraintMemory()The total required size (in bytes) of the contact constraints in the current simulation step -
setRequiredContactConstraintMemory
public void setRequiredContactConstraintMemory(int value) The total required size (in bytes) of the contact constraints in the current simulation step -
getPeakConstraintMemory
public int getPeakConstraintMemory()The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation step -
setPeakConstraintMemory
public void setPeakConstraintMemory(int value) The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation step -
getNbDiscreteContactPairsTotal
public int getNbDiscreteContactPairsTotal()Total number of (non CCD) pairs reaching narrow phase -
setNbDiscreteContactPairsTotal
public void setNbDiscreteContactPairsTotal(int value) Total number of (non CCD) pairs reaching narrow phase -
getNbDiscreteContactPairsWithCacheHits
public int getNbDiscreteContactPairsWithCacheHits()Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal) Note: This includes pairs for which no contacts are generated, it still counts as a cache hit. -
setNbDiscreteContactPairsWithCacheHits
public void setNbDiscreteContactPairsWithCacheHits(int value) Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal) Note: This includes pairs for which no contacts are generated, it still counts as a cache hit. -
getNbDiscreteContactPairsWithContacts
public int getNbDiscreteContactPairsWithContacts()Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal) -
setNbDiscreteContactPairsWithContacts
public void setNbDiscreteContactPairsWithContacts(int value) Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal) -
getNbNewPairs
public int getNbNewPairs()Number of new pairs found by BP this frame -
setNbNewPairs
public void setNbNewPairs(int value) Number of new pairs found by BP this frame -
getNbLostPairs
public int getNbLostPairs()Number of lost pairs from BP this frame -
setNbLostPairs
public void setNbLostPairs(int value) Number of lost pairs from BP this frame -
getNbNewTouches
public int getNbNewTouches()Number of new touches found by NP this frame -
setNbNewTouches
public void setNbNewTouches(int value) Number of new touches found by NP this frame -
getNbLostTouches
public int getNbLostTouches()Number of lost touches from NP this frame -
setNbLostTouches
public void setNbLostTouches(int value) Number of lost touches from NP this frame -
getNbPartitions
public int getNbPartitions()Number of partitions used by the solver this frame -
setNbPartitions
public void setNbPartitions(int value) Number of partitions used by the solver this frame -
getNbBroadPhaseAdds
public int getNbBroadPhaseAdds() -
setNbBroadPhaseAdds
public void setNbBroadPhaseAdds(int value) -
getNbBroadPhaseRemoves
public int getNbBroadPhaseRemoves() -
setNbBroadPhaseRemoves
public void setNbBroadPhaseRemoves(int value)
-