35#include "PxPhysXConfig.h"
38#include "PxRigidActor.h"
39#include "geometry/PxGeometryQuery.h"
40#include "PxQueryReport.h"
66 return actor.getGlobalPose() * shape.getLocalPose();
85 const PxVec3& rayOrigin,
const PxVec3& rayDir, PxReal maxDist, PxHitFlags hitFlags,
89 rayOrigin, rayDir, shape.getGeometry(),
getGlobalPose(shape, actor), maxDist, hitFlags, maxHits, rayHits);
Class representing 3D range or axis aligned bounding box.
Definition PxBounds3.h:58
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, PxGeomRaycastHit *PX_RESTRICT rayHits, PxU32 stride, PxGeometryQueryFlags queryFlags=PxGeometryQueryFlag::eDEFAULT, PxRaycastThreadContext *threadContext=NULL)
Raycast test against a geometry object.
Definition GuGeometryQuery.cpp:184
PX_DEPRECATED static PX_PHYSX_COMMON_API PxBounds3 getWorldBounds(const PxGeometry &geom, const PxTransform &pose, float inflation=1.01f)
get the bounds for a geometry object
Definition GuGeometryQuery.cpp:316
static PX_PHYSX_COMMON_API bool overlap(const PxGeometry &geom0, const PxTransform &pose0, const PxGeometry &geom1, const PxTransform &pose1, PxGeometryQueryFlags queryFlags=PxGeometryQueryFlag::eDEFAULT, PxOverlapThreadContext *threadContext=NULL)
Overlap test for two geometry objects.
Definition GuGeometryQuery.cpp:174
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, PxGeomSweepHit &sweepHit, PxHitFlags hitFlags=PxHitFlag::eDEFAULT, const PxReal inflation=0.0f, PxGeometryQueryFlags queryFlags=PxGeometryQueryFlag::eDEFAULT, PxSweepThreadContext *threadContext=NULL)
Sweep a specified geometry object in space and test for collision with a given object.
Definition GuGeometryQuery.cpp:92
A geometry object.
Definition PxGeometry.h:79
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition PxRigidActor.h:53
utility functions for use with PxShape
Definition PxShapeExt.h:54
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:126
static PX_INLINE PxTransform getGlobalPose(const PxShape &shape, const PxRigidActor &actor)
Retrieves the world space pose of the shape.
Definition PxShapeExt.h:64
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:103
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:84
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:145
Abstract class for collision shapes.
Definition PxShape.h:146
3 Element vector class.
Definition PxVec3.h:50
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition PxQueryReport.h:66
Definition PxQueryReport.h:68