PxSceneLimits Class Reference

Class used to retrieve limits(e.g. maximum number of bodies) for a scene. The limits are used as a hint to the size of the scene, not as a hard limit (i.e. it will be possible to create more objects than specified in the scene limits). More...

#include <PxSceneDesc.h>

Public Member Functions

PX_INLINE PxSceneLimits ()
 constructor sets to default More...
 
PX_INLINE void setToDefault ()
 (re)sets the structure to the default More...
 
PX_INLINE bool isValid () const
 Returns true if the descriptor is valid. More...
 

Public Attributes

PxU32 maxNbActors
 Expected maximum number of actors. More...
 
PxU32 maxNbBodies
 Expected maximum number of dynamic rigid bodies. More...
 
PxU32 maxNbStaticShapes
 Expected maximum number of static shapes. More...
 
PxU32 maxNbDynamicShapes
 Expected maximum number of dynamic shapes. More...
 
PxU32 maxNbAggregates
 Expected maximum number of aggregates. More...
 
PxU32 maxNbConstraints
 Expected maximum number of constraint shaders. More...
 
PxU32 maxNbRegions
 Expected maximum number of broad-phase regions. More...
 
PxU32 maxNbBroadPhaseOverlaps
 Expected maximum number of broad-phase overlaps. More...
 

Detailed Description

Class used to retrieve limits(e.g. maximum number of bodies) for a scene. The limits are used as a hint to the size of the scene, not as a hard limit (i.e. it will be possible to create more objects than specified in the scene limits).

0 indicates no limit. Using limits allows the SDK to preallocate various arrays, leading to less re-allocations and faster code at runtime.

Member Data Documentation

◆ maxNbActors

PxU32 PxSceneLimits::maxNbActors

Expected maximum number of actors.

◆ maxNbAggregates

PxU32 PxSceneLimits::maxNbAggregates

Expected maximum number of aggregates.

◆ maxNbBodies

PxU32 PxSceneLimits::maxNbBodies

Expected maximum number of dynamic rigid bodies.

◆ maxNbBroadPhaseOverlaps

PxU32 PxSceneLimits::maxNbBroadPhaseOverlaps

Expected maximum number of broad-phase overlaps.

◆ maxNbConstraints

PxU32 PxSceneLimits::maxNbConstraints

Expected maximum number of constraint shaders.

◆ maxNbDynamicShapes

PxU32 PxSceneLimits::maxNbDynamicShapes

Expected maximum number of dynamic shapes.

◆ maxNbRegions

PxU32 PxSceneLimits::maxNbRegions

Expected maximum number of broad-phase regions.

Referenced by isValid().

◆ maxNbStaticShapes

PxU32 PxSceneLimits::maxNbStaticShapes

Expected maximum number of static shapes.


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