|
RavEngine
|
Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh) More...
#include <PxGjkQueryExt.h>
Public Member Functions | |
| ConvexGeomSupport () | |
| Default constructor. | |
| ConvexGeomSupport (const PxGeometry &geom, PxReal margin=0) | |
| Constructs a BoxSupport for a PxGeometry. | |
| ~ConvexGeomSupport () | |
| Destructor. | |
| bool | isValid () const |
| Returns false if ConvexGeomSupport was constructed from non-convex geometry. | |
| virtual PxReal | getMargin () const |
| Return the user defined shape margin. Margin should be greater than or equal to 0. | |
| virtual PxVec3 | supportLocal (const PxVec3 &dir) const |
| Return the farthest point on the user defined shape's core in given direction. | |
Pre-made support mapping for any PhysX's convex geometry (sphere, capsule, box, convex mesh)
|
virtual |
Return the user defined shape margin. Margin should be greater than or equal to 0.
Implements physx::PxGjkQuery::Support.
Return the farthest point on the user defined shape's core in given direction.
| [in] | dir | Direction |
Implements physx::PxGjkQuery::Support.