Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TriangleConvexSupport Struct Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TriangleConvexSupport()

TriangleConvexSupport::TriangleConvexSupport ( Vec3Arg  inV1,
Vec3Arg  inV2,
Vec3Arg  inV3 
)
inline

Constructor.

Member Function Documentation

◆ GetSupport()

Vec3 TriangleConvexSupport::GetSupport ( Vec3Arg  inDirection) const
inline

Calculate the support vector for this convex shape.

◆ GetSupportingFace()

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

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

Member Data Documentation

◆ mV1

Vec3 TriangleConvexSupport::mV1

The three vertices of the triangle.

◆ mV2

Vec3 TriangleConvexSupport::mV2

◆ mV3

Vec3 TriangleConvexSupport::mV3

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