Package physx.physics

Class PxSimulationStatistics

java.lang.Object
physx.NativeObject
physx.physics.PxSimulationStatistics

public class PxSimulationStatistics extends NativeObject
Class used to retrieve statistics for a simulation step.
  • 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

      public static PxSimulationStatistics wrapPointer(long address)
    • arrayGet

      public static PxSimulationStatistics arrayGet(long baseAddress, int index)
    • 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 index
      value - 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)