|
RavEngine
|
Pre-made support mapping for a convex mesh. More...
#include <PxGjkQueryExt.h>
Public Member Functions | |
| ConvexMeshSupport () | |
| Default constructor. | |
| ConvexMeshSupport (const PxConvexMesh &convexMesh, const PxVec3 &scale=PxVec3(1), const PxQuat &scaleRotation=PxQuat(PxIdentity), PxReal margin=0) | |
| Constructs a BoxSupport for a PxConvexMesh. | |
| ConvexMeshSupport (const PxConvexMeshGeometry &convexMesh, PxReal margin=0) | |
| Constructs a BoxSupport for a PxConvexMeshGeometry. | |
| 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. | |
Public Attributes | |
| const PxConvexMesh * | convexMesh |
| PxVec3 | scale |
| PxQuat | scaleRotation |
| PxReal | margin |
Pre-made support mapping for a 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.