Jolt Physics
A multi core friendly Game Physics Engine
|
Class that wraps a polygon so that it can used with convex collision detection. More...
#include <ConvexSupport.h>
Public Member Functions | |
PolygonConvexSupport (const VERTEX_ARRAY &inVertices) | |
Constructor. | |
Vec3 | GetSupport (Vec3Arg inDirection) const |
Calculate the support vector for this convex shape. | |
template<class VERTEX_ARRAY_ARG > | |
void | GetSupportingFace (Vec3Arg inDirection, VERTEX_ARRAY_ARG &outVertices) const |
Get the vertices of the face that faces inDirection the most. | |
Public Attributes | |
const VERTEX_ARRAY & | mVertices |
The vertices of the polygon. | |
Class that wraps a polygon so that it can used with convex collision detection.
|
inlineexplicit |
Constructor.
|
inline |
Calculate the support vector for this convex shape.
|
inline |
Get the vertices of the face that faces inDirection the most.
const VERTEX_ARRAY& PolygonConvexSupport< VERTEX_ARRAY >::mVertices |
The vertices of the polygon.