|
RavEngine
|
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a core shape and a margin. If the distance between two shapes' cores is equal to the sum of their margins, these shapes are considered touching. More...
#include <PxGjkQuery.h>
Public Member Functions | |
| virtual PxReal | getMargin () const =0 |
| Return the user defined shape margin. Margin should be greater than or equal to 0. | |
| virtual PxVec3 | supportLocal (const PxVec3 &dir) const =0 |
| Return the farthest point on the user defined shape's core in given direction. | |
Abstract interface for a user defined shape GJK mapping support. A user defined shape consists of a core shape and a margin. If the distance between two shapes' cores is equal to the sum of their margins, these shapes are considered touching.
|
pure virtual |
Return the user defined shape margin. Margin should be greater than or equal to 0.
Implemented in physx::PxGjkQueryExt::SphereSupport, physx::PxGjkQueryExt::CapsuleSupport, physx::PxGjkQueryExt::BoxSupport, physx::PxGjkQueryExt::ConvexMeshSupport, physx::PxGjkQueryExt::ConvexGeomSupport, CustomConvex, and TriangleSupport.
Return the farthest point on the user defined shape's core in given direction.
| [in] | dir | Direction |
Implemented in CustomCylinder, CustomCone, physx::PxGjkQueryExt::SphereSupport, physx::PxGjkQueryExt::CapsuleSupport, physx::PxGjkQueryExt::BoxSupport, physx::PxGjkQueryExt::ConvexMeshSupport, physx::PxGjkQueryExt::ConvexGeomSupport, and TriangleSupport.