PxSceneLimits

Defined in include/PxSceneDesc.h

class PxSceneLimits

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.

Public Functions

inline PxSceneLimits()

constructor sets to default

inline void setToDefault()

(re)sets the structure to the default

inline bool isValid() const

Returns true if the descriptor is valid.

Returns

true if the current settings are valid.

Public Members

PxU32 maxNbActors

Expected maximum number of actors.

PxU32 maxNbBodies

Expected maximum number of dynamic rigid bodies.

PxU32 maxNbStaticShapes

Expected maximum number of static shapes.

PxU32 maxNbDynamicShapes

Expected maximum number of dynamic shapes.

PxU32 maxNbAggregates

Expected maximum number of aggregates.

PxU32 maxNbConstraints

Expected maximum number of constraint shaders.

PxU32 maxNbRegions

Expected maximum number of broad-phase regions.

PxU32 maxNbBroadPhaseOverlaps

Expected maximum number of broad-phase overlaps.