Physics

Namespaces

 Cm
 

Classes

struct  PxMetaDataEntry
 Struct to store meta data definitions. More...
 
class  PxStringTable
 a table to manage strings. Strings allocated through this object are expected to be owned by this object. More...
 
struct  PxActorFlag
 Flags which control the behavior of an actor. More...
 
struct  PxActorType
 Identifies each type of actor. More...
 
class  PxActor
 PxActor is the base class for the main simulation objects in the physics SDK. More...
 
class  PxAggregate
 Class to aggregate actors into a single broad-phase entry. More...
 
class  PxArticulationDriveCache
 Articulation drive cache. More...
 
class  PxArticulation
 a tree structure of bodies connected by joints that is treated as a unit by the dynamics solver More...
 
class  PxArticulationBase
 a tree structure of bodies connected by joints that is treated as a unit by the dynamics solver More...
 
struct  PxArticulationJointDriveType
 The type of joint drive to use for the articulation joint. More...
 
struct  PxArticulationAxis
 
struct  PxArticulationMotion
 
struct  PxArticulationJointType
 
class  PxArticulationJointBase
 
class  PxArticulationJoint
 a joint between two links in an articulation. More...
 
class  PxArticulationJointReducedCoordinate
 a joint between two links in an articulation. More...
 
class  PxArticulationLink
 a component of an articulation that represents a rigid body More...
 
struct  PxArticulationFlag
 
class  PxKinematicJacobian
 
struct  PxArticulationRootLinkData
 
class  PxArticulationCache
 
class  PxArticulationReducedCoordinate
 a tree structure of bodies connected by joints that is treated as a unit by the dynamics solver More...
 
struct  PxBatchQueryStatus
 Batched query status. More...
 
struct  PxBatchQueryResult< HitType >
 Generic struct for receiving results of single query in a batch. Gets templated on hit type PxRaycastHit, PxSweepHit or PxOverlapHit. More...
 
struct  PxBatchQueryMemory
 Struct for PxBatchQuery memory pointers. More...
 
class  PxBatchQueryDesc
 Descriptor class for PxBatchQuery. More...
 
struct  PxBroadPhaseType
 Broad phase algorithm used in the simulation. More...
 
class  PxBroadPhaseCallback
 Broad-phase callback to receive broad-phase related events. More...
 
struct  PxBroadPhaseRegion
 "Region of interest" for the broad-phase. More...
 
struct  PxBroadPhaseRegionInfo
 Information & stats structure for a region. More...
 
struct  PxBroadPhaseCaps
 Caps class for broad phase. More...
 
struct  PxConstraintFlag
 a table of function pointers for a constraint More...
 
struct  PxConstraintShaderTable
 
class  PxConstraint
 A plugin class for implementing constraints. More...
 
struct  Px1DConstraintFlag
 constraint row flags More...
 
struct  PxConstraintSolveHint
 constraint type hints which the solver uses to optimize constraint handling More...
 
struct  Px1DConstraint
 A constraint. More...
 
struct  PxConstraintVisualizationFlag
 Flags for determining which components of the constraint should be visualized. More...
 
struct  PxConstraintInvMassScale
 
class  PxConstraintVisualizer
 
struct  PxPvdUpdateType
 
class  PxConstraintConnector
 This class connects a custom constraint to the SDK. More...
 
class  PxContactSet
 An array of contact points, as passed to contact modification. More...
 
class  PxContactModifyPair
 An array of instances of this class is passed to PxContactModifyCallback::onContactModify(). More...
 
class  PxContactModifyCallback
 An interface class that the user can implement in order to modify contact constraints. More...
 
class  PxCCDContactModifyCallback
 An interface class that the user can implement in order to modify CCD contact constraints. More...
 
struct  PxDeletionEventFlag
 Flags specifying deletion event types. More...
 
class  PxDeletionListener
 interface to get notification on object deletion More...
 
struct  PxPairFlag
 Collection of flags describing the actions to take for a collision pair. More...
 
struct  PxFilterFlag
 Collection of flags describing the filter actions to take for a collision pair. More...
 
struct  PxFilterData
 PxFilterData is user-definable data which gets passed into the collision filtering shader and/or callback. More...
 
struct  PxFilterObjectType
 Identifies each type of filter object. More...
 
struct  PxFilterObjectFlag
 
class  PxSimulationFilterCallback
 Filter callback to specify handling of collision pairs. More...
 
struct  PxPairFilteringMode
 
struct  PxForceMode
 Parameter to addForce() and addTorque() calls, determines the exact operation that is carried out. More...
 
struct  PxDataAccessFlag
 
class  PxLockedData
 Parent class for bulk data that is shared between the SDK and the application. More...
 
struct  PxMaterialFlag
 Flags which control the behavior of a material. More...
 
struct  PxCombineMode
 enumeration that determines the way in which two material properties will be combined to yield a friction or restitution coefficient for a collision. More...
 
class  PxMaterial
 Material class to represent a set of surface properties. More...
 
class  PxPhysics
 Abstract singleton factory class used for instancing objects in the Physics SDK. More...
 
class  PxPruningStructure
 A precomputed pruning structure to accelerate scene queries against newly added actors. More...
 
class  PxRigidActor
 PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SDK. More...
 
struct  PxRigidBodyFlag
 Collection of flags describing the behavior of a rigid body. More...
 
class  PxRigidBody
 PxRigidBody is a base class shared between dynamic rigid body objects. More...
 
struct  PxRigidDynamicLockFlag
 Collection of flags providing a mechanism to lock motion along/around a specific axis. More...
 
class  PxRigidDynamic
 PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK. More...
 
class  PxRigidStatic
 PxRigidStatic represents a static rigid body simulation object in the physics SDK. More...
 
struct  PxDominanceGroupPair
 Expresses the dominance relationship of a contact. For the time being only three settings are permitted: More...
 
struct  PxActorTypeFlag
 Identifies each type of actor for retrieving actors from a scene. More...
 
struct  PxQueryCache
 single hit cache for scene queries. More...
 
class  PxScene
 A scene is a collection of bodies and constraints which can interact. More...
 
struct  PxPruningStructureType
 Pruning structure used to accelerate scene queries. More...
 
struct  PxSceneQueryUpdateMode
 Scene query update mode. More...
 
struct  PxFrictionType
 Enum for selecting the friction algorithm used for simulation. More...
 
struct  PxSolverType
 Enum for selecting the type of solver used for the simulation. More...
 
struct  PxSceneFlag
 flags for configuring properties of the scene More...
 
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). More...
 
struct  PxgDynamicsMemoryConfig
 Sizes of pre-allocated buffers use for GPU dynamics. More...
 
class  PxSceneDesc
 Descriptor class for scenes. See PxScene. More...
 
class  PxSceneReadLock
 RAII wrapper for the PxScene read lock. More...
 
class  PxSceneWriteLock
 RAII wrapper for the PxScene write lock. More...
 
struct  PxShapeFlag
 Flags which affect the behavior of PxShapes. More...
 
class  PxShape
 Abstract class for collision shapes. More...
 
struct  PxContactPairExtraDataType
 Extra data item types for contact pairs. More...
 
struct  PxContactPairExtraDataItem
 Base class for items in the extra data stream of contact pairs. More...
 
struct  PxContactPairVelocity
 Velocities of the contact pair rigid bodies. More...
 
struct  PxContactPairPose
 World space actor poses of the contact pair rigid bodies. More...
 
struct  PxContactPairIndex
 Marker for the beginning of a new item set in the extra data stream. More...
 
struct  PxContactPairExtraDataIterator
 A class to iterate over a contact pair extra data stream. More...
 
struct  PxContactPairHeaderFlag
 Collection of flags providing information on contact report pairs. More...
 
struct  PxContactPairHeader
 An Instance of this class is passed to PxSimulationEventCallback.onContact(). More...
 
struct  PxContactPairFlag
 Collection of flags providing information on contact report pairs. More...
 
struct  PxContactPairPoint
 A contact point as used by contact notification. More...
 
struct  PxContactPair
 Contact report pair information. More...
 
struct  PxTriggerPairFlag
 Collection of flags providing information on trigger report pairs. More...
 
struct  PxTriggerPair
 Descriptor for a trigger pair. More...
 
struct  PxConstraintInfo
 Descriptor for a broken constraint. More...
 
class  PxSimulationEventCallback
 An interface class that the user can implement in order to receive simulation events. More...
 
class  PxSimulationStatistics
 Class used to retrieve statistics for a simulation step. More...
 
struct  PxVisualizationParameter
 Debug visualization parameters. More...
 

Macros

#define PX_STORE_METADATA(stream, metaData)   stream.write(&metaData, sizeof(PxMetaDataEntry))
 
#define PX_SIZE_OF(Class, Member)   sizeof((reinterpret_cast<Class*>(0))->Member)
 
#define PX_DEF_BIN_METADATA_ITEM(stream, Class, type, name, flags)
 specifies a binary metadata entry for a member variable of a class More...
 
#define PX_DEF_BIN_METADATA_ITEMS(stream, Class, type, name, flags, count)
 specifies a binary metadata entry for a member array variable of a class More...
 
#define PX_DEF_BIN_METADATA_ITEMS_AUTO(stream, Class, type, name, flags)
 specifies a binary metadata entry for a member array variable of a class More...
 
#define PX_DEF_BIN_METADATA_CLASS(stream, Class)
 specifies a binary metadata entry for a class More...
 
#define PX_DEF_BIN_METADATA_VCLASS(stream, Class)
 specifies a binary metadata entry for a virtual class More...
 
#define PX_DEF_BIN_METADATA_TYPEDEF(stream, newType, oldType)
 specifies a binary metadata entry for a typedef More...
 
#define PX_DEF_BIN_METADATA_BASE_CLASS(stream, Class, BaseClass)
 specifies a binary metadata entry for declaring a base class More...
 
#define PX_DEF_BIN_METADATA_UNION(stream, Class, name)
 specifies a binary metadata entry for a union More...
 
#define PX_DEF_BIN_METADATA_UNION_TYPE(stream, Class, type, enumValue)
 specifies a binary metadata entry for a particular member type of a union More...
 
#define PX_DEF_BIN_METADATA_EXTRA_ITEM(stream, Class, type, control, align)
 specifies a binary metadata entry for extra data More...
 
#define PX_DEF_BIN_METADATA_EXTRA_ITEMS(stream, Class, type, control, count, flags, align)
 specifies a binary metadata entry for an array of extra data More...
 
#define PX_DEF_BIN_METADATA_EXTRA_ITEMS_MASKED_CONTROL(stream, Class, type, control, controlMask, count, flags, align)
 specifies a binary metadata entry for an array of extra data additional to PX_DEF_BIN_METADATA_EXTRA_ITEMS a mask can be specified to interpret the control value More...
 
#define PX_DEF_BIN_METADATA_EXTRA_ARRAY(stream, Class, type, dyn_count, align, flags)
 specifies a binary metadata entry for an array of extra data More...
 
#define PX_DEF_BIN_METADATA_EXTRA_NAME(stream, Class, control, align)
 specifies a binary metadata entry for an string of extra data More...
 
#define PX_DEF_BIN_METADATA_EXTRA_ALIGN(stream, Class, align)
 specifies a binary metadata entry declaring an extra data alignment for a class More...
 

Typedefs

typedef PxU8 PxDominanceGroup
 
typedef PxFlags< PxActorFlag::Enum, PxU8 > PxActorFlags
 collection of set bits defined in PxActorFlag. More...
 
typedef PxFlags< PxArticulationMotion::Enum, PxU8 > PxArticulationMotions
 
typedef PxFlags< PxArticulationFlag::Enum, PxU8 > PxArticulationFlags
 
typedef PxFlags< PxArticulationCache::Enum, PxU8 > PxArticulationCacheFlags
 
typedef PX_DEPRECATED PxBatchQueryResult< PxRaycastHitPxRaycastQueryResult
 Convenience typedef for the result of a batched raycast query. More...
 
typedef PX_DEPRECATED PxBatchQueryResult< PxSweepHitPxSweepQueryResult
 Convenience typedef for the result of a batched sweep query. More...
 
typedef PX_DEPRECATED PxBatchQueryResult< PxOverlapHitPxOverlapQueryResult
 Convenience typedef for the result of a batched overlap query. More...
 
typedef PxFlags< PxConstraintFlag::Enum, PxU16 > PxConstraintFlags
 constraint flags More...
 
typedef PxFlags< Px1DConstraintFlag::Type, PxU16 > Px1DConstraintFlags
 
typedef PxU32(* PxConstraintSolverPrep) (Px1DConstraint *constraints, PxVec3 &bodyAWorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &invMassScale, const void *constantBlock, const PxTransform &bodyAToWorld, const PxTransform &bodyBToWorld, bool useExtendedLimits, PxVec3 &cAtW, PxVec3 &cBtW)
 
typedef void(* PxConstraintProject) (const void *constantBlock, PxTransform &bodyAToWorld, PxTransform &bodyBToWorld, bool projectToA)
 
typedef void(* PxConstraintVisualize) (PxConstraintVisualizer &visualizer, const void *constantBlock, const PxTransform &body0Transform, const PxTransform &body1Transform, PxU32 flags)
 
typedef PxFlags< PxDeletionEventFlag::Enum, PxU8 > PxDeletionEventFlags
 Collection of set bits defined in PxDeletionEventFlag. More...
 
typedef PxFlags< PxPairFlag::Enum, PxU16 > PxPairFlags
 Bitfield that contains a set of raised flags defined in PxPairFlag. More...
 
typedef PxFlags< PxFilterFlag::Enum, PxU16 > PxFilterFlags
 Bitfield that contains a set of raised flags defined in PxFilterFlag. More...
 
typedef PxU32 PxFilterObjectAttributes
 Structure which gets passed into the collision filtering shader and/or callback providing additional information on objects of a collision pair. More...
 
typedef PxFilterFlags(* PxSimulationFilterShader) (PxFilterObjectAttributes attributes0, PxFilterData filterData0, PxFilterObjectAttributes attributes1, PxFilterData filterData1, PxPairFlags &pairFlags, const void *constantBlock, PxU32 constantBlockSize)
 Filter shader to specify handling of collision pairs. More...
 
typedef PxFlags< PxDataAccessFlag::Enum, PxU8 > PxDataAccessFlags
 collection of set bits defined in PxDataAccessFlag. More...
 
typedef PxFlags< PxMaterialFlag::Enum, PxU16 > PxMaterialFlags
 collection of set bits defined in PxMaterialFlag. More...
 
typedef PxFlags< PxRigidBodyFlag::Enum, PxU8 > PxRigidBodyFlags
 collection of set bits defined in PxRigidBodyFlag. More...
 
typedef PxFlags< PxRigidDynamicLockFlag::Enum, PxU16 > PxRigidDynamicLockFlags
 
typedef PxU8 PxDominanceGroup
 
typedef PxFlags< PxActorTypeFlag::Enum, PxU16 > PxActorTypeFlags
 Collection of set bits defined in PxActorTypeFlag. More...
 
typedef PxFlags< PxSceneFlag::Enum, PxU32PxSceneFlags
 collection of set bits defined in PxSceneFlag. More...
 
typedef PxFlags< PxShapeFlag::Enum, PxU8 > PxShapeFlags
 collection of set bits defined in PxShapeFlag. More...
 
typedef PxFlags< PxContactPairHeaderFlag::Enum, PxU16 > PxContactPairHeaderFlags
 Bitfield that contains a set of raised flags defined in PxContactPairHeaderFlag. More...
 
typedef PxFlags< PxContactPairFlag::Enum, PxU16 > PxContactPairFlags
 Bitfield that contains a set of raised flags defined in PxContactPairFlag. More...
 
typedef PxFlags< PxTriggerPairFlag::Enum, PxU8 > PxTriggerPairFlags
 Bitfield that contains a set of raised flags defined in PxTriggerPairFlag. More...
 

Functions

struct Px1DConstraint PX_ALIGN_SUFFIX (16)
 
PX_INLINE PxFilterObjectType::Enum PxGetFilterObjectType (PxFilterObjectAttributes attr)
 Extract filter object type from the filter attributes of a collision pair object. More...
 
PX_INLINE bool PxFilterObjectIsKinematic (PxFilterObjectAttributes attr)
 Specifies whether the collision object belongs to a kinematic rigid body. More...
 
PX_INLINE bool PxFilterObjectIsTrigger (PxFilterObjectAttributes attr)
 Specifies whether the collision object is a trigger shape. More...
 
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulations (physx::PxPhysics &physics)
 Enables the usage of the articulations feature. This function is called automatically inside PxCreatePhysics(). On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function to save on code memory if your application does not use articulations. In this case the linker should strip out the relevant implementation code from the library. If you need to use articulations but not some other optional component, you shoud call PxCreateBasePhysics() followed by this call. More...
 
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulationsReducedCoordinate (physx::PxPhysics &physics)
 Enables the usage of the reduced coordinate articulations feature. This function is called automatically inside PxCreatePhysics(). On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function to save on code memory if your application does not use articulations. In this case the linker should strip out the relevant implementation code from the library. If you need to use articulations but not some other optional component, you shoud call PxCreateBasePhysics() followed by this call. More...
 
PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterHeightFields (physx::PxPhysics &physics)
 Enables the usage of the heightfield feature. More...
 
PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics *PX_CALL_CONV PxCreateBasePhysics (physx::PxU32 version, physx::PxFoundation &foundation, const physx::PxTolerancesScale &scale, bool trackOutstandingAllocations=false, physx::PxPvd *pvd=NULL)
 Creates an instance of the physics SDK with minimal additional components registered. More...
 
PX_INLINE physx::PxPhysics * PxCreatePhysics (physx::PxU32 version, physx::PxFoundation &foundation, const physx::PxTolerancesScale &scale, bool trackOutstandingAllocations=false, physx::PxPvd *pvd=NULL)
 Creates an instance of the physics SDK. More...
 
PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics &PX_CALL_CONV PxGetPhysics ()
 Retrieves the Physics SDK after it has been created. More...
 
PX_INLINE PxBatchQueryDesc::PxBatchQueryDesc (PxU32 maxRaycastsPerExecute, PxU32 maxSweepsPerExecute, PxU32 maxOverlapsPerExecute)
 Construct a batch query with specified maximum number of queries per batch. More...
 
PX_INLINE bool PxBatchQueryDesc::isValid () const
 
PX_INLINE PxSceneLimits::PxSceneLimits ()
 constructor sets to default More...
 
PX_INLINE void PxSceneLimits::setToDefault ()
 (re)sets the structure to the default More...
 
PX_INLINE bool PxSceneLimits::isValid () const
 Returns true if the descriptor is valid. More...
 
PX_INLINE PxSceneDesc::PxSceneDesc (const PxTolerancesScale &scale)
 constructor sets to default. More...
 
PX_INLINE void PxSceneDesc::setToDefault (const PxTolerancesScale &scale)
 (re)sets the structure to the default. More...
 
PX_INLINE bool PxSceneDesc::isValid () const
 Returns true if the descriptor is valid. More...
 
PX_INLINE PxU32 PxContactPair::extractContacts (PxContactPairPoint *userBuffer, PxU32 bufferSize) const
 Extracts the contact points from the stream and stores them in a convenient format. More...
 
PX_INLINE void PxContactPair::bufferContacts (PxContactPair *newPair, PxU8 *bufferMemory) const
 Helper method to clone the contact pair and copy the contact data stream into a user buffer. More...
 
PX_INLINE const PxU32PxContactPair::getInternalFaceIndices () const
 

Variables

struct PxConstraintVisualizationFlag PX_ALIGN_SUFFIX
 
static const PxU32 INVALID_FILTER_PAIR_INDEX = 0xffffffff
 

Detailed Description

Configuration include file for PhysX SDK

Macro Definition Documentation

◆ PX_DEF_BIN_METADATA_BASE_CLASS

#define PX_DEF_BIN_METADATA_BASE_CLASS (   stream,
  Class,
  BaseClass 
)
Value:
{ \
Class* myClass = reinterpret_cast<Class*>(42); \
BaseClass* s = static_cast<BaseClass*>(myClass); \
const PxU32 offset = PxU32(size_t(s) - size_t(myClass)); \
PxMetaDataEntry tmp = { #Class, #BaseClass, offset, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS, 0 }; \
PX_STORE_METADATA(stream, tmp); \
}
declares a class
Definition: PxMetaDataFlags.h:50
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for declaring a base class

◆ PX_DEF_BIN_METADATA_CLASS

#define PX_DEF_BIN_METADATA_CLASS (   stream,
  Class 
)
Value:
{ \
PxMetaDataEntry tmp = { #Class, 0, 0, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS, 0 }; \
PX_STORE_METADATA(stream, tmp); \
}
declares a class
Definition: PxMetaDataFlags.h:50

specifies a binary metadata entry for a class

◆ PX_DEF_BIN_METADATA_EXTRA_ALIGN

#define PX_DEF_BIN_METADATA_EXTRA_ALIGN (   stream,
  Class,
  align 
)
Value:
{ \
PxMetaDataEntry tmp = { "PxU8", "Alignment", 0, 0, 0, 0, PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eALIGNMENT, align}; \
PX_STORE_METADATA(stream, tmp); \
}
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
declares aligned data
Definition: PxMetaDataFlags.h:60

specifies a binary metadata entry declaring an extra data alignment for a class

◆ PX_DEF_BIN_METADATA_EXTRA_ARRAY

#define PX_DEF_BIN_METADATA_EXTRA_ARRAY (   stream,
  Class,
  type,
  dyn_count,
  align,
  flags 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, dyn_count)), PX_SIZE_OF(Class, dyn_count), align, 0, \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for an array of extra data

similar to PX_DEF_BIN_METADATA_EXTRA_ITEMS, but supporting no control - PxMetaDataFlag::ePTR is also not supported

◆ PX_DEF_BIN_METADATA_EXTRA_ITEM

#define PX_DEF_BIN_METADATA_EXTRA_ITEM (   stream,
  Class,
  type,
  control,
  align 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), sizeof(type), 0, PxU32(PX_SIZE_OF(Class, control)), \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
specifies one element of extra data
Definition: PxMetaDataFlags.h:55
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for extra data

◆ PX_DEF_BIN_METADATA_EXTRA_ITEMS

#define PX_DEF_BIN_METADATA_EXTRA_ITEMS (   stream,
  Class,
  type,
  control,
  count,
  flags,
  align 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), PxU32(PX_SIZE_OF(Class, control)), \
PxU32(PX_OFFSET_OF_RT(Class, count)), PxU32(PX_SIZE_OF(Class, count)), \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
specifies an array of extra data
Definition: PxMetaDataFlags.h:56
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for an array of extra data

◆ PX_DEF_BIN_METADATA_EXTRA_ITEMS_MASKED_CONTROL

#define PX_DEF_BIN_METADATA_EXTRA_ITEMS_MASKED_CONTROL (   stream,
  Class,
  type,
  control,
  controlMask,
  count,
  flags,
  align 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), PxU32(PX_SIZE_OF(Class, control)), \
PxU32(PX_OFFSET_OF_RT(Class, count)), PxU32(PX_SIZE_OF(Class, count)), \
align}; \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
specifies an array of extra data
Definition: PxMetaDataFlags.h:56
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
mask range allowed for eCONTROL_MASK
Definition: PxMetaDataFlags.h:65
uint32_t PxU32
Definition: Px.h:48
specifies that the control value is masked - mask bits are assumed to be within eCONTROL_MASK_RANGE ...
Definition: PxMetaDataFlags.h:64

specifies a binary metadata entry for an array of extra data additional to PX_DEF_BIN_METADATA_EXTRA_ITEMS a mask can be specified to interpret the control value

See also
PxMetaDataFlag::eCONTROL_MASK

◆ PX_DEF_BIN_METADATA_EXTRA_NAME

#define PX_DEF_BIN_METADATA_EXTRA_NAME (   stream,
  Class,
  control,
  align 
)
Value:
{ \
PxMetaDataEntry tmp = { "char", "string", 0, 0, 0, 0, PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eEXTRA_NAME, align }; \
PX_STORE_METADATA(stream, tmp); \
}
declares extra data exported with PxSerializer::exportExtraData
Definition: PxMetaDataFlags.h:54
specifies a name of extra data
Definition: PxMetaDataFlags.h:57

specifies a binary metadata entry for an string of extra data

◆ PX_DEF_BIN_METADATA_ITEM

#define PX_DEF_BIN_METADATA_ITEM (   stream,
  Class,
  type,
  name,
  flags 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \
1, 0, flags, 0}; \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for a member variable of a class

◆ PX_DEF_BIN_METADATA_ITEMS

#define PX_DEF_BIN_METADATA_ITEMS (   stream,
  Class,
  type,
  name,
  flags,
  count 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \
count, 0, flags, 0}; \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for a member array variable of a class

similar to PX_DEF_BIN_METADATA_ITEMS_AUTO but for cases with mismatch between specified type and array type

◆ PX_DEF_BIN_METADATA_ITEMS_AUTO

#define PX_DEF_BIN_METADATA_ITEMS_AUTO (   stream,
  Class,
  type,
  name,
  flags 
)
Value:
{ \
PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \
sizeof((reinterpret_cast<Class*>(0))->name)/sizeof(type), 0, flags, 0}; \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for a member array variable of a class

similar to PX_DEF_BIN_METADATA_ITEMS but automatically detects the array length, which only works when the specified type matches the type of the array - does not support PxMetaDataFlag::ePTR

◆ PX_DEF_BIN_METADATA_TYPEDEF

#define PX_DEF_BIN_METADATA_TYPEDEF (   stream,
  newType,
  oldType 
)
Value:
{ \
PxMetaDataEntry tmp = { #newType, #oldType, 0, 0, 0, 0, PxMetaDataFlag::eTYPEDEF, 0 }; \
PX_STORE_METADATA(stream, tmp); \
}
declares a typedef
Definition: PxMetaDataFlags.h:52

specifies a binary metadata entry for a typedef

◆ PX_DEF_BIN_METADATA_UNION

#define PX_DEF_BIN_METADATA_UNION (   stream,
  Class,
  name 
)
Value:
{ \
PxMetaDataEntry tmp = { #Class, 0, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \
1, 0, PxMetaDataFlag::eUNION, 0 }; \
PX_STORE_METADATA(stream, tmp); \
}
#define PX_SIZE_OF(Class, Member)
Definition: PxMetaData.h:66
declares a union
Definition: PxMetaDataFlags.h:58
#define PX_OFFSET_OF_RT(Class, Member)
Definition: PxPreprocessor.h:457
uint32_t PxU32
Definition: Px.h:48

specifies a binary metadata entry for a union

◆ PX_DEF_BIN_METADATA_UNION_TYPE

#define PX_DEF_BIN_METADATA_UNION_TYPE (   stream,
  Class,
  type,
  enumValue 
)
Value:
{ \
PxMetaDataEntry tmp = { #Class, #type, enumValue, 0, 0, 0, PxMetaDataFlag::eUNION, 0 }; \
PX_STORE_METADATA(stream, tmp); \
}
declares a union
Definition: PxMetaDataFlags.h:58

specifies a binary metadata entry for a particular member type of a union

◆ PX_DEF_BIN_METADATA_VCLASS

#define PX_DEF_BIN_METADATA_VCLASS (   stream,
  Class 
)
Value:
{ \
PxMetaDataEntry tmp = { #Class, 0, 0, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS|PxMetaDataFlag::eVIRTUAL, 0}; \
PX_STORE_METADATA(stream, tmp); \
}
declares a class
Definition: PxMetaDataFlags.h:50
declares class to be virtual
Definition: PxMetaDataFlags.h:51

specifies a binary metadata entry for a virtual class

◆ PX_SIZE_OF

#define PX_SIZE_OF (   Class,
  Member 
)    sizeof((reinterpret_cast<Class*>(0))->Member)

◆ PX_STORE_METADATA

#define PX_STORE_METADATA (   stream,
  metaData 
)    stream.write(&metaData, sizeof(PxMetaDataEntry))

Typedef Documentation

◆ Px1DConstraintFlags

◆ PxActorFlags

collection of set bits defined in PxActorFlag.

See also
PxActorFlag

◆ PxActorTypeFlags

Collection of set bits defined in PxActorTypeFlag.

See also
PxActorTypeFlag

◆ PxArticulationCacheFlags

◆ PxArticulationFlags

◆ PxArticulationMotions

◆ PxConstraintFlags

constraint flags

See also
PxConstraintFlag

◆ PxConstraintProject

typedef void(* PxConstraintProject) (const void *constantBlock, PxTransform &bodyAToWorld, PxTransform &bodyBToWorld, bool projectToA)

solver constraint projection shader

This function is called by the constraint post-solver framework. The function must be reentrant, since it may be called simultaneously from multiple threads and should access only the arguments passed into it.

Parameters
[in]constantBlockThe constant data block
[out]bodyAToWorldThe center of mass frame of the first constrained body (the identity if the actor is static or a NULL pointer was provided for it)
[out]bodyBToWorldThe center of mass frame of the second constrained body (the identity if the actor is static or a NULL pointer was provided for it)
[in]projectToATrue if the constraint should be projected by moving the second body towards the first, false if the converse

◆ PxConstraintSolverPrep

typedef PxU32(* PxConstraintSolverPrep) (Px1DConstraint *constraints, PxVec3 &bodyAWorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &invMassScale, const void *constantBlock, const PxTransform &bodyAToWorld, const PxTransform &bodyBToWorld, bool useExtendedLimits, PxVec3 &cAtW, PxVec3 &cBtW)

solver constraint generation shader

This function is called by the constraint solver framework. The function must be reentrant, since it may be called simultaneously from multiple threads, and should access only the arguments passed into it.

Developers writing custom constraints are encouraged to read the documentation in the user guide and the implementation code in PhysXExtensions.

Parameters
[out]constraintsAn array of solver constraint rows to be filled in
[out]bodyAWorldOffsetThe origin point (offset from the position vector of bodyA's center of mass) at which the constraint is resolved. This value does not affect how constraints are solved, only the constraint force reported.
[in]maxConstraintsThe size of the constraint buffer. At most this many constraints rows may be written
[out]invMassScaleThe inverse mass and inertia scales for the constraint
[in]constantBlockThe constant data block
[in]bodyAToWorldThe center of mass frame of the first constrained body (the identity transform if the first actor is static, or if a NULL actor pointer was provided for it)
[in]bodyBToWorldThe center of mass frame of the second constrained body (the identity transform if the second actor is static, or if a NULL actor pointer was provided for it)
[in]useExtendedLimitsEnables limit ranges outside of (-PI, PI)
[out]cAtWThe world space location of body A's joint frame (position only)
[out]cBtWThe world space location of body B's joint frame (position only)
Returns
the number of constraint rows written.

◆ PxConstraintVisualize

typedef void(* PxConstraintVisualize) (PxConstraintVisualizer &visualizer, const void *constantBlock, const PxTransform &body0Transform, const PxTransform &body1Transform, PxU32 flags)

solver constraint visualization function

This function is called by the constraint post-solver framework to visualize the constraint

Parameters
[out]visualizerThe render buffer to render to
[in]constantBlockThe constant data block
[in]body0TransformThe center of mass frame of the first constrained body (the identity if the actor is static, or a NULL pointer was provided for it)
[in]body1TransformThe center of mass frame of the second constrained body (the identity if the actor is static, or a NULL pointer was provided for it)
[in]flagsThe visualization flags (PxConstraintVisualizationFlag)
See also
PxRenderBuffer

◆ PxContactPairFlags

Bitfield that contains a set of raised flags defined in PxContactPairFlag.

See also
PxContactPairFlag

◆ PxContactPairHeaderFlags

Bitfield that contains a set of raised flags defined in PxContactPairHeaderFlag.

See also
PxContactPairHeaderFlag

◆ PxDataAccessFlags

collection of set bits defined in PxDataAccessFlag.

See also
PxDataAccessFlag

◆ PxDeletionEventFlags

Collection of set bits defined in PxDeletionEventFlag.

See also
PxDeletionEventFlag

◆ PxDominanceGroup [1/2]

typedef PxU8 PxDominanceGroup

Group index which allows to specify 1- or 2-way interaction

◆ PxDominanceGroup [2/2]

typedef PxU8 PxDominanceGroup

◆ PxFilterFlags

Bitfield that contains a set of raised flags defined in PxFilterFlag.

See also
PxFilterFlag

◆ PxFilterObjectAttributes

Structure which gets passed into the collision filtering shader and/or callback providing additional information on objects of a collision pair.

See also
PxSimulationFilterShader PxSimulationFilterCallback getActorType() PxFilterObjectIsKinematic() PxFilterObjectIsTrigger()

◆ PxMaterialFlags

collection of set bits defined in PxMaterialFlag.

See also
PxMaterialFlag

◆ PxOverlapQueryResult

Convenience typedef for the result of a batched overlap query.

◆ PxPairFlags

Bitfield that contains a set of raised flags defined in PxPairFlag.

See also
PxPairFlag

◆ PxRaycastQueryResult

Convenience typedef for the result of a batched raycast query.

◆ PxRigidBodyFlags

collection of set bits defined in PxRigidBodyFlag.

See also
PxRigidBodyFlag

◆ PxRigidDynamicLockFlags

◆ PxSceneFlags

collection of set bits defined in PxSceneFlag.

See also
PxSceneFlag

◆ PxShapeFlags

collection of set bits defined in PxShapeFlag.

See also
PxShapeFlag

◆ PxSimulationFilterShader

typedef PxFilterFlags(* PxSimulationFilterShader) (PxFilterObjectAttributes attributes0, PxFilterData filterData0, PxFilterObjectAttributes attributes1, PxFilterData filterData1, PxPairFlags &pairFlags, const void *constantBlock, PxU32 constantBlockSize)

Filter shader to specify handling of collision pairs.

Collision filtering is a mechanism to specify how a pair of potentially colliding objects should be processed by the simulation. A pair of objects is potentially colliding if the bounding volumes of the two objects overlap. In short, a collision filter decides whether a collision pair should get processed, temporarily ignored or discarded. If a collision pair should get processed, the filter can additionally specify how it should get processed, for instance, whether contacts should get resolved, which callbacks should get invoked or which reports should be sent etc.

Note
A default implementation of a filter shader is provided in the PhysX extensions library, see PxDefaultSimulationFilterShader.
See also
PxSceneDesc.filterShader PxSimulationFilterCallback Filter method to specify how a pair of potentially colliding objects should be processed.

Return the PxFilterFlag flags and set the PxPairFlag flags to define what the simulation should do with the given collision pair.

This methods gets called when:

  • The bounding volumes of two objects start to overlap.
  • The bounding volumes of two objects overlap and the filter data or filter attributes of one of the objects changed
  • A re-filtering was forced through resetFiltering() (see PxScene::resetFiltering())
  • Filtering is requested in scene queries
Note
Certain pairs of objects are always ignored and this method does not get called. This is the case for the following pairs:
  • Pair of static rigid actors
  • A static rigid actor and a kinematic actor (unless one is a trigger or if explicitly enabled through PxSceneFlag::eENABLE_KINEMATIC_STATIC_PAIRS)
  • Two kinematic actors (unless one is a trigger or if explicitly enabled through PxSceneFlag::eENABLE_KINEMATIC_PAIRS)
  • Two jointed rigid bodies and the joint was defined to disable collision
  • Two articulation links if connected through an articulation joint
Note
This is a performance critical method and should be stateless. You should neither access external objects from within this method nor should you call external methods that are not inlined. If you need a more complex logic to filter a collision pair then use the filter callback mechanism for this pair (see PxSimulationFilterCallback, PxFilterFlag::eCALLBACK, PxFilterFlag::eNOTIFY).
Parameters
[in]attributes0The filter attribute of the first object
[in]filterData0The custom filter data of the first object
[in]attributes1The filter attribute of the second object
[in]filterData1The custom filter data of the second object
[out]pairFlagsFlags giving additional information on how an accepted pair should get processed
[in]constantBlockThe constant global filter data (see PxSceneDesc.filterShaderData)
[in]constantBlockSizeSize of the global filter data (see PxSceneDesc.filterShaderDataSize)
Returns
Filter flags defining whether the pair should be discarded, temporarily ignored, processed and whether the filter callback should get invoked for this pair.
See also
PxSimulationFilterCallback PxFilterData PxFilterObjectAttributes PxFilterFlag PxFilterFlags PxPairFlag PxPairFlags

◆ PxSweepQueryResult

Convenience typedef for the result of a batched sweep query.

◆ PxTriggerPairFlags

Bitfield that contains a set of raised flags defined in PxTriggerPairFlag.

See also
PxTriggerPairFlag

Function Documentation

◆ bufferContacts()

PX_INLINE void PxContactPair::bufferContacts ( PxContactPair newPair,
PxU8 *  bufferMemory 
) const

Helper method to clone the contact pair and copy the contact data stream into a user buffer.

The contact data stream is only accessible during the contact report callback. This helper function provides copy functionality to buffer the contact stream information such that it can get accessed at a later stage.

Parameters
[out]newPairThe contact pair info will get copied to this instance. The contact data stream pointer of the copy will be redirected to the provided user buffer. Use NULL to skip the contact pair copy operation.
[out]bufferMemoryMemory block to store the contact data stream to. At most requiredBufferSize bytes will get written to the buffer.

References PxContactPair::contactPatches, PxContactPair::contactPoints, and PxMemCopy().

◆ extractContacts()

◆ getInternalFaceIndices()

PX_INLINE const PxU32 * PxContactPair::getInternalFaceIndices ( ) const

◆ isValid() [1/3]

PX_INLINE bool PxBatchQueryDesc::isValid ( ) const

◆ isValid() [2/3]

PX_INLINE bool PxSceneLimits::isValid ( ) const

Returns true if the descriptor is valid.

Returns
true if the current settings are valid.

References PxSceneLimits::maxNbRegions.

Referenced by PxSceneDesc::isValid().

◆ isValid() [3/3]

◆ PX_ALIGN_SUFFIX()

struct Px1DConstraint PX_ALIGN_SUFFIX ( 16  )

◆ PxBatchQueryDesc()

PX_INLINE PxBatchQueryDesc::PxBatchQueryDesc ( PxU32  maxRaycastsPerExecute,
PxU32  maxSweepsPerExecute,
PxU32  maxOverlapsPerExecute 
)

Construct a batch query with specified maximum number of queries per batch.

If the number of raycasts/sweeps/overlaps per execute exceeds the limit, the query will be discarded with a warning.

Parameters
maxRaycastsPerExecuteMaximum number of raycast() calls allowed before execute() call. This has to match the amount of memory allocated for PxBatchQueryMemory::userRaycastResultBuffer.
maxSweepsPerExecuteMaximum number of sweep() calls allowed before execute() call. This has to match the amount of memory allocated for PxBatchQueryMemory::userSweepResultBuffer.
maxOverlapsPerExecuteMaximum number of overlap() calls allowed before execute() call. This has to match the amount of memory allocated for PxBatchQueryMemory::userOverlapResultBuffer.

◆ PxCreateBasePhysics()

PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics* PX_CALL_CONV PxCreateBasePhysics ( physx::PxU32  version,
physx::PxFoundation &  foundation,
const physx::PxTolerancesScale &  scale,
bool  trackOutstandingAllocations = false,
physx::PxPvd *  pvd = NULL 
)

Creates an instance of the physics SDK with minimal additional components registered.

Creates an instance of this class. May not be a class member to avoid name mangling. Pass the constant PX_PHYSICS_VERSION as the argument. There may be only one instance of this class per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned.

Parameters
versionVersion number we are expecting(should be PX_PHYSICS_VERSION)
foundationFoundation instance (see PxFoundation)
scalevalues used to determine default tolerances for objects at creation time
trackOutstandingAllocationstrue if you want to track memory allocations so a debugger connection partway through your physics simulation will get an accurate map of everything that has been allocated so far. This could have a memory and performance impact on your simulation hence it defaults to off.
pvdWhen pvd points to a valid PxPvd instance (PhysX Visual Debugger), a connection to the specified PxPvd instance is created. If pvd is NULL no connection will be attempted.
Returns
PxPhysics instance on success, NULL if operation failed
See also
PxPhysics, PxFoundation, PxTolerancesScale, PxPvd

Referenced by PxCreatePhysics().

◆ PxCreatePhysics()

PX_INLINE physx::PxPhysics* PxCreatePhysics ( physx::PxU32  version,
physx::PxFoundation &  foundation,
const physx::PxTolerancesScale &  scale,
bool  trackOutstandingAllocations = false,
physx::PxPvd *  pvd = NULL 
)

Creates an instance of the physics SDK.

Creates an instance of this class. May not be a class member to avoid name mangling. Pass the constant PX_PHYSICS_VERSION as the argument. There may be only one instance of this class per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned.

Calling this will register all optional code modules (Articulations and HeightFields), preparing them for use. If you do not need some of these modules, consider calling PxCreateBasePhysics() instead and registering needed modules manually.

Parameters
versionVersion number we are expecting(should be PX_PHYSICS_VERSION)
foundationFoundation instance (see PxFoundation)
scalevalues used to determine default tolerances for objects at creation time
trackOutstandingAllocationstrue if you want to track memory allocations so a debugger connection partway through your physics simulation will get an accurate map of everything that has been allocated so far. This could have a memory and performance impact on your simulation hence it defaults to off.
pvdWhen pvd points to a valid PxPvd instance (PhysX Visual Debugger), a connection to the specified PxPvd instance is created. If pvd is NULL no connection will be attempted.
Returns
PxPhysics instance on success, NULL if operation failed
See also
PxPhysics, PxCreateBasePhysics, PxRegisterArticulations, PxRegisterArticulationsReducedCoordinate, PxRegisterHeightFields

References PxCreateBasePhysics(), PxRegisterArticulations(), PxRegisterArticulationsReducedCoordinate(), and PxRegisterHeightFields().

◆ PxFilterObjectIsKinematic()

PX_INLINE bool PxFilterObjectIsKinematic ( PxFilterObjectAttributes  attr)

Specifies whether the collision object belongs to a kinematic rigid body.

Parameters
[in]attrThe filter attribute of a collision pair object
Returns
True if the object belongs to a kinematic rigid body, else false
See also
PxRigidBodyFlag::eKINEMATIC

References PxFilterObjectFlag::eKINEMATIC.

◆ PxFilterObjectIsTrigger()

PX_INLINE bool PxFilterObjectIsTrigger ( PxFilterObjectAttributes  attr)

Specifies whether the collision object is a trigger shape.

Parameters
[in]attrThe filter attribute of a collision pair object
Returns
True if the object is a trigger shape, else false
See also
PxShapeFlag::eTRIGGER_SHAPE

References PxFilterObjectFlag::eTRIGGER.

◆ PxGetFilterObjectType()

Extract filter object type from the filter attributes of a collision pair object.

Parameters
[in]attrThe filter attribute of a collision pair object
Returns
The type of the collision pair object.
See also
PxFilterObjectType

References PxFilterObjectType::eMAX_TYPE_COUNT.

◆ PxGetPhysics()

PX_C_EXPORT PX_PHYSX_CORE_API physx::PxPhysics& PX_CALL_CONV PxGetPhysics ( )

Retrieves the Physics SDK after it has been created.

Before using this function the user must call PxCreatePhysics().

Note
The behavior of this method is undefined if the Physics SDK instance has not been created already.

Referenced by PxRigidActorExt::createExclusiveShape().

◆ PxRegisterArticulations()

PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulations ( physx::PxPhysics &  physics)

Enables the usage of the articulations feature. This function is called automatically inside PxCreatePhysics(). On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function to save on code memory if your application does not use articulations. In this case the linker should strip out the relevant implementation code from the library. If you need to use articulations but not some other optional component, you shoud call PxCreateBasePhysics() followed by this call.

Referenced by PxCreatePhysics().

◆ PxRegisterArticulationsReducedCoordinate()

PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterArticulationsReducedCoordinate ( physx::PxPhysics &  physics)

Enables the usage of the reduced coordinate articulations feature. This function is called automatically inside PxCreatePhysics(). On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function to save on code memory if your application does not use articulations. In this case the linker should strip out the relevant implementation code from the library. If you need to use articulations but not some other optional component, you shoud call PxCreateBasePhysics() followed by this call.

Referenced by PxCreatePhysics().

◆ PxRegisterHeightFields()

PX_C_EXPORT PX_PHYSX_CORE_API void PX_CALL_CONV PxRegisterHeightFields ( physx::PxPhysics &  physics)

Enables the usage of the heightfield feature.

This call will link the default 'unified' implementation of heightfields which is identical to the narrow phase of triangle meshes. This function is called automatically inside PxCreatePhysics().

On resource constrained platforms, it is possible to call PxCreateBasePhysics() and then NOT call this function to save on code memory if your application does not use heightfields. In this case the linker should strip out the relevant implementation code from the library. If you need to use heightfield but not some other optional component, you shoud call PxCreateBasePhysics() followed by this call.

You must call this function at a time where no PxScene instance exists, typically before calling PxPhysics::createScene(). This is to prevent a change to the heightfield implementation code at runtime which would have undefined results.

Calling PxCreateBasePhysics() and then attempting to create a heightfield shape without first calling PxRegisterHeightFields(), will result in an error.

Referenced by PxCreatePhysics().

◆ PxSceneDesc()

PX_INLINE PxSceneDesc::PxSceneDesc ( const PxTolerancesScale scale)

constructor sets to default.

Parameters
[in]scalescale values for the tolerances in the scene, these must be the same values passed into PxCreatePhysics(). The affected tolerances are bounceThresholdVelocity and frictionOffsetThreshold.
See also
PxCreatePhysics() PxTolerancesScale bounceThresholdVelocity frictionOffsetThreshold

Referenced by PxSceneDesc::setToDefault().

◆ PxSceneLimits()

PX_INLINE PxSceneLimits::PxSceneLimits ( )

constructor sets to default

Referenced by PxSceneLimits::setToDefault().

◆ setToDefault() [1/2]

PX_INLINE void PxSceneLimits::setToDefault ( )

(re)sets the structure to the default

References PxSceneLimits::PxSceneLimits().

◆ setToDefault() [2/2]

PX_INLINE void PxSceneDesc::setToDefault ( const PxTolerancesScale scale)

(re)sets the structure to the default.

Parameters
[in]scalescale values for the tolerances in the scene, these must be the same values passed into PxCreatePhysics(). The affected tolerances are bounceThresholdVelocity and frictionOffsetThreshold.
See also
PxCreatePhysics() PxTolerancesScale bounceThresholdVelocity frictionOffsetThreshold

References PxSceneDesc::PxSceneDesc().

Variable Documentation

◆ INVALID_FILTER_PAIR_INDEX

const PxU32 INVALID_FILTER_PAIR_INDEX = 0xffffffff
static

◆ PX_ALIGN_SUFFIX