29#ifndef PX_GJK_QUERY_EXT_H
30#define PX_GJK_QUERY_EXT_H
32#include "geometry/PxGjkQuery.h"
33#include "geometry/PxGeometry.h"
40class PxSphereGeometry;
41class PxCapsuleGeometry;
43class PxConvexMeshGeometry;
82 PxReal radius, halfHeight;
204 PxReal contactDistance, PxReal toleranceLength,
PxContactBuffer& contactBuffer);
Class representing the geometry of a box.
Definition PxBoxGeometry.h:49
Class representing the geometry of a capsule.
Definition PxCapsuleGeometry.h:54
Convex mesh geometry class.
Definition PxConvexMeshGeometry.h:79
A convex mesh.
Definition PxConvexMesh.h:83
A geometry object.
Definition PxGeometry.h:79
Pre-made support mapping for built-in convex geometry types.
Definition PxGjkQueryExt.h:51
static bool generateContacts(const PxGjkQuery::Support &a, const PxGjkQuery::Support &b, const PxTransform &poseA, const PxTransform &poseB, PxReal contactDistance, PxReal toleranceLength, PxContactBuffer &contactBuffer)
Generates a contact point between two shapes using GJK-EPA algorithm.
Definition ExtGjkQueryExt.cpp:235
This is a quaternion class. For more information on quaternion mathematics consult a mathematics sour...
Definition PxQuat.h:50
A class representing the geometry of a sphere.
Definition PxSphereGeometry.h:48
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
Enum
Definition PxGeometry.h:52
Pre-made support mapping for a box.
Definition PxGjkQueryExt.h:105
virtual PxReal getMargin() const
Return the user defined shape margin. Margin should be greater than or equal to 0.
Definition ExtGjkQueryExt.cpp:102
BoxSupport()
Default constructor.
Definition ExtGjkQueryExt.cpp:90
virtual PxVec3 supportLocal(const PxVec3 &dir) const
Return the farthest point on the user defined shape's core in given direction.
Definition ExtGjkQueryExt.cpp:107
Pre-made support mapping for a capsule.
Definition PxGjkQueryExt.h:81
virtual PxVec3 supportLocal(const PxVec3 &dir) const
Return the farthest point on the user defined shape's core in given direction.
Definition ExtGjkQueryExt.cpp:83
CapsuleSupport()
Default constructor.
Definition ExtGjkQueryExt.cpp:66
virtual PxReal getMargin() const
Return the user defined shape margin. Margin should be greater than or equal to 0.
Definition ExtGjkQueryExt.cpp:78
Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh)
Definition PxGjkQueryExt.h:157
virtual PxVec3 supportLocal(const PxVec3 &dir) const
Return the farthest point on the user defined shape's core in given direction.
Definition ExtGjkQueryExt.cpp:228
virtual PxReal getMargin() const
Return the user defined shape margin. Margin should be greater than or equal to 0.
Definition ExtGjkQueryExt.cpp:223
ConvexGeomSupport()
Default constructor.
Definition ExtGjkQueryExt.cpp:172
bool isValid() const
Returns false if ConvexGeomSupport was constructed from non-convex geometry.
Definition ExtGjkQueryExt.cpp:218
~ConvexGeomSupport()
Destructor.
Definition ExtGjkQueryExt.cpp:212
Pre-made support mapping for a convex mesh.
Definition PxGjkQueryExt.h:130
ConvexMeshSupport()
Default constructor.
Definition ExtGjkQueryExt.cpp:115
virtual PxVec3 supportLocal(const PxVec3 &dir) const
Return the farthest point on the user defined shape's core in given direction.
Definition ExtGjkQueryExt.cpp:144
virtual PxReal getMargin() const
Return the user defined shape margin. Margin should be greater than or equal to 0.
Definition ExtGjkQueryExt.cpp:139
Pre-made support mapping for a sphere.
Definition PxGjkQueryExt.h:57
SphereSupport()
Default constructor.
Definition ExtGjkQueryExt.cpp:42
virtual PxVec3 supportLocal(const PxVec3 &dir) const
Return the farthest point on the user defined shape's core in given direction.
Definition ExtGjkQueryExt.cpp:59
virtual PxReal getMargin() const
Return the user defined shape margin. Margin should be greater than or equal to 0.
Definition ExtGjkQueryExt.cpp:54
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a c...
Definition PxGjkQuery.h:55