31 #ifndef PX_PHYSICS_EXTENSIONS_SHAPE_H 32 #define PX_PHYSICS_EXTENSIONS_SHAPE_H 90 rayOrigin, rayDir, shape.
getGeometry().
any(), getGlobalPose(shape, actor), maxDist, hitFlags, maxHits, rayHits);
Definition: GuContactBuffer.h:37
utility functions for use with PxShape
Definition: PxShapeExt.h:54
Abstract class for collision shapes.
Definition: PxShape.h:142
float PxReal
Definition: PxSimpleTypes.h:78
PX_FORCE_INLINE PxGeometry & any()
Definition: PxGeometryHelpers.h:72
static PX_INLINE bool sweep(const PxShape &shape, const PxRigidActor &actor, const PxVec3 &unitDir, const PxReal distance, const PxGeometry &otherGeom, const PxTransform &otherGeomPose, PxSweepHit &sweepHit, PxHitFlags hitFlags)
Sweep a geometry object against the shape.
Definition: PxShapeExt.h:127
A geometry object.
Definition: PxGeometry.h:75
static PX_PHYSX_COMMON_API PxU32 raycast(const PxVec3 &origin, const PxVec3 &unitDir, const PxGeometry &geom, const PxTransform &pose, PxReal maxDist, PxHitFlags hitFlags, PxU32 maxHits, PxRaycastHit *PX_RESTRICT rayHits)
Raycast test against a geometry object.
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition: PxRigidActor.h:58
static PX_PHYSX_COMMON_API bool sweep(const PxVec3 &unitDir, const PxReal maxDist, const PxGeometry &geom0, const PxTransform &pose0, const PxGeometry &geom1, const PxTransform &pose1, PxSweepHit &sweepHit, PxHitFlags hitFlags=PxHitFlag::eDEFAULT, const PxReal inflation=0.f)
Sweep a specified geometry object in space and test for collision with a given object.
static PX_INLINE PxU32 raycast(const PxShape &shape, const PxRigidActor &actor, const PxVec3 &rayOrigin, const PxVec3 &rayDir, PxReal maxDist, PxHitFlags hitFlags, PxU32 maxHits, PxRaycastHit *rayHits)
Raycast test against the shape.
Definition: PxShapeExt.h:85
static PX_INLINE bool overlap(const PxShape &shape, const PxRigidActor &actor, const PxGeometry &otherGeom, const PxTransform &otherGeomPose)
Test overlap between the shape and a geometry object.
Definition: PxShapeExt.h:104
static PX_PHYSX_COMMON_API bool overlap(const PxGeometry &geom0, const PxTransform &pose0, const PxGeometry &geom1, const PxTransform &pose1)
Overlap test for two geometry objects.
Class representing 3D range or axis aligned bounding box.
Definition: PxBounds3.h:58
static PX_INLINE PxTransform getGlobalPose(const PxShape &shape, const PxRigidActor &actor)
Retrieves the world space pose of the shape.
Definition: PxShapeExt.h:65
static PX_PHYSX_COMMON_API PxBounds3 getWorldBounds(const PxGeometry &geom, const PxTransform &pose, float inflation=1.01f)
get the bounds for a geometry object
virtual PxTransform getGlobalPose() const =0
Retrieves the actors world space transform.
Stores results of sweep queries.
Definition: PxQueryReport.h:199
Stores results of raycast queries.
Definition: PxQueryReport.h:173
uint32_t PxU32
Definition: Px.h:48
virtual PxTransform getLocalPose() const =0
Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by...
virtual PxGeometryHolder getGeometry() const =0
Retrieve the geometry from the shape in a PxGeometryHolder wrapper class.
static PX_INLINE PxBounds3 getWorldBounds(const PxShape &shape, const PxRigidActor &actor, float inflation=1.01f)
Retrieves the axis aligned bounding box enclosing the shape.
Definition: PxShapeExt.h:146
#define PX_INLINE
Definition: PxPreprocessor.h:349
3 Element vector class.
Definition: PxVec3.h:49