PxGeometryHolder
Defined in include/geometry/PxGeometryHelpers.h
-
class PxGeometryHolder
Geometry holder class.
This class contains enough space to hold a value of any PxGeometry subtype.
Its principal use is as a convenience class to allow geometries to be returned polymorphically from functions.
Public Functions
-
inline PxGeometryType::Enum getType() const
-
inline PxGeometry &any()
-
inline const PxGeometry &any() const
-
inline void storeAny(const PxGeometry &geometry)
-
inline PxGeometryHolder()
-
inline PxGeometryHolder(const PxGeometry &geometry)
Public Members
-
PxU8 geometry[sizeof(PxGeometry)]
-
PxU8 box[sizeof(PxBoxGeometry)]
-
PxU8 sphere[sizeof(PxSphereGeometry)]
-
PxU8 capsule[sizeof(PxCapsuleGeometry)]
-
PxU8 plane[sizeof(PxPlaneGeometry)]
-
PxU8 convex[sizeof(PxConvexMeshGeometry)]
-
PxU8 tetMesh[sizeof(PxTetrahedronMeshGeometry)]
-
PxU8 mesh[sizeof(PxTriangleMeshGeometry)]
-
PxU8 heightfield[sizeof(PxHeightFieldGeometry)]
-
PxU8 particleSystem[sizeof(PxParticleSystemGeometry)]
-
PxU8 hairSystem[sizeof(PxHairSystemGeometry)]
-
PxU8 custom[sizeof(PxCustomGeometry)]
-
inline PxGeometryType::Enum getType() const