![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
Class that wraps a triangle so that it can used with convex collision detection. More...
#include <ConvexSupport.h>
Public Member Functions | |
| TriangleConvexSupport (Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3) | |
| Constructor. More... | |
| Vec3 | GetSupport (Vec3Arg inDirection) const |
| Calculate the support vector for this convex shape. More... | |
| template<class VERTEX_ARRAY > | |
| void | GetSupportingFace (Vec3Arg inDirection, VERTEX_ARRAY &outVertices) const |
| Get the vertices of the face that faces inDirection the most. More... | |
Public Attributes | |
| Vec3 | mV1 |
| The three vertices of the triangle. More... | |
| Vec3 | mV2 |
| Vec3 | mV3 |
Class that wraps a triangle so that it can used with convex collision detection.
Constructor.
Calculate the support vector for this convex shape.
|
inline |
Get the vertices of the face that faces inDirection the most.
| Vec3 TriangleConvexSupport::mV1 |
The three vertices of the triangle.
| Vec3 TriangleConvexSupport::mV2 |
| Vec3 TriangleConvexSupport::mV3 |