Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
PolygonConvexSupport< VERTEX_ARRAY > Struct Template Reference

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. More...
 
Vec3 GetSupport (Vec3Arg inDirection) const
 Calculate the support vector for this convex shape. More...
 
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. More...
 

Public Attributes

const VERTEX_ARRAY & mVertices
 The vertices of the polygon. More...
 

Detailed Description

template<class VERTEX_ARRAY>
struct PolygonConvexSupport< VERTEX_ARRAY >

Class that wraps a polygon so that it can used with convex collision detection.

Constructor & Destructor Documentation

◆ PolygonConvexSupport()

template<class VERTEX_ARRAY >
PolygonConvexSupport< VERTEX_ARRAY >::PolygonConvexSupport ( const VERTEX_ARRAY &  inVertices)
inlineexplicit

Constructor.

Member Function Documentation

◆ GetSupport()

template<class VERTEX_ARRAY >
Vec3 PolygonConvexSupport< VERTEX_ARRAY >::GetSupport ( Vec3Arg  inDirection) const
inline

Calculate the support vector for this convex shape.

◆ GetSupportingFace()

template<class VERTEX_ARRAY >
template<class VERTEX_ARRAY_ARG >
void PolygonConvexSupport< VERTEX_ARRAY >::GetSupportingFace ( Vec3Arg  inDirection,
VERTEX_ARRAY_ARG &  outVertices 
) const
inline

Get the vertices of the face that faces inDirection the most.

Member Data Documentation

◆ mVertices

template<class VERTEX_ARRAY >
const VERTEX_ARRAY& PolygonConvexSupport< VERTEX_ARRAY >::mVertices

The vertices of the polygon.


The documentation for this struct was generated from the following file: