32#include "common/PxPhysXCommonConfig.h"
33#include "foundation/PxVec3.h"
34#include "foundation/PxQuat.h"
91 PxReal contactDistance, PxReal toleranceLength,
PxVec3& pointA,
PxVec3& pointB,
PxVec3& separatingAxis, PxReal& separation);
Collection of GJK query functions (sweeps, raycasts, overlaps, ...).
Definition PxGjkQuery.h:45
static PX_PHYSX_COMMON_API bool overlap(const Support &a, const Support &b, const PxTransform &poseA, const PxTransform &poseB)
Overlap test for two shapes.
Definition GuGjkQuery.cpp:227
static PX_PHYSX_COMMON_API bool proximityInfo(const Support &a, const Support &b, const PxTransform &poseA, const PxTransform &poseB, PxReal contactDistance, PxReal toleranceLength, PxVec3 &pointA, PxVec3 &pointB, PxVec3 &separatingAxis, PxReal &separation)
Computes proximity information for two shapes using GJK-EPA algorithm.
Definition GuGjkQuery.cpp:106
static PX_PHYSX_COMMON_API bool sweep(const Support &a, const Support &b, const PxTransform &poseA, const PxTransform &poseB, const PxVec3 &unitDir, PxReal maxDist, PxReal &t, PxVec3 &n, PxVec3 &p)
Sweep the shape B in space and test for collision with the shape A.
Definition GuGjkQuery.cpp:248
static PX_PHYSX_COMMON_API bool raycast(const Support &shape, const PxTransform &pose, const PxVec3 &rayStart, const PxVec3 &unitDir, PxReal maxDist, PxReal &t, PxVec3 &n, PxVec3 &p)
Raycast test against the given shape.
Definition GuGjkQuery.cpp:197
3 Element vector class.
Definition PxVec3.h:50
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a c...
Definition PxGjkQuery.h:55
virtual PxVec3 supportLocal(const PxVec3 &dir) const =0
Return the farthest point on the user defined shape's core in given direction.
virtual PxReal getMargin() const =0
Return the user defined shape margin. Margin should be greater than or equal to 0.