|
RavEngine
|
Pre-made support mapping for a box. More...
#include <PxGjkQueryExt.h>
Public Member Functions | |
| BoxSupport () | |
| Default constructor. | |
| BoxSupport (const PxVec3 &halfExtents, PxReal margin=0) | |
| Constructs a BoxSupport for a box halfExtents with optional margin. | |
| BoxSupport (const PxBoxGeometry &box, PxReal margin=0) | |
| Constructs a BoxSupport for a PxBoxGeometry. | |
| 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 | |
| PxVec3 | halfExtents |
| PxReal | margin |
Pre-made support mapping for a box.
|
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.