34 class PxConvexMeshGeometry;
35 class PxTriangleMeshGeometry;
37 class PxHeightFieldGeometry;
44 bool computeCapsule_TriangleMeshMTD(
const PxTriangleMeshGeometry& triMeshGeom,
const PxTransform& pose, Gu::CapsuleV& capsuleV, PxReal inflatedRadius,
bool isDoubleSided, PxGeomSweepHit& hit);
46 bool computeCapsule_HeightFieldMTD(
const PxHeightFieldGeometry& heightFieldGeom,
const PxTransform& pose, Gu::CapsuleV& capsuleV, PxReal inflatedRadius,
bool isDoubleSided, PxGeomSweepHit& hit);
48 bool computeBox_TriangleMeshMTD(
const PxTriangleMeshGeometry& triMeshGeom,
const PxTransform& pose,
const Gu::Box& box,
const PxTransform& boxTransform, PxReal inflation,
49 bool isDoubleSided, PxGeomSweepHit& hit);
51 bool computeBox_HeightFieldMTD(
const PxHeightFieldGeometry& heightFieldGeom,
const PxTransform& pose,
const Gu::Box& box,
const PxTransform& boxTransform, PxReal inflation,
bool isDoubleSided, PxGeomSweepHit& hit);
53 bool computeConvex_TriangleMeshMTD(
const PxTriangleMeshGeometry& triMeshGeom,
const PxTransform& pose,
const PxConvexMeshGeometry& convexGeom,
const PxTransform& convexTransform, PxReal inflation,
54 bool isDoubleSided, PxGeomSweepHit& hit);
56 bool computeConvex_HeightFieldMTD(
const PxHeightFieldGeometry& heightFieldGeom,
const PxTransform& pose,
const PxConvexMeshGeometry& convexGeom,
const PxTransform& convexTransform, PxReal inflation,
bool isDoubleSided, PxGeomSweepHit& hit);
58 bool computeSphere_SphereMTD(
const Sphere& sphere0,
const Sphere& sphere1, PxGeomSweepHit& hit);
59 bool computeSphere_CapsuleMTD(
const Sphere& sphere,
const Capsule& capsule, PxGeomSweepHit& hit);
61 bool computeCapsule_CapsuleMTD(
const Capsule& capsule0,
const Capsule& capsule1, PxGeomSweepHit& hit);
63 bool computePlane_CapsuleMTD(
const PxPlane& plane,
const Capsule& capsule, PxGeomSweepHit& hit);
64 bool computePlane_BoxMTD(
const PxPlane& plane,
const Box& box, PxGeomSweepHit& hit);
65 bool computePlane_ConvexMTD(
const PxPlane& plane,
const PxConvexMeshGeometry& convexGeom,
const PxTransform& convexPose, PxGeomSweepHit& hit);
68 PX_FORCE_INLINE void setupSweepHitForMTD(PxGeomSweepHit& sweepHit,
bool hasContacts,
const PxVec3& unitDir)
73 sweepHit.distance = 0.0f;
74 sweepHit.normal = -unitDir;
79 if(sweepHit.distance == 0.0f && sweepHit.normal.isZero())
80 sweepHit.normal = -unitDir;
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
@ eNORMAL
"normal" member of #PxQueryHit is valid
Definition PxGeometryHit.h:61
@ eFACE_INDEX
"face index" member of #PxQueryHit is valid
Definition PxGeometryHit.h:75
@ ePOSITION
"position" member of #PxQueryHit is valid
Definition PxGeometryHit.h:60