Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
GetTrianglesContextVertexList Class Reference

Implementation of GetTrianglesStart/Next that uses a fixed list of vertices for the triangles. These are transformed into world space when getting the triangles. More...

#include <GetTrianglesContext.h>

Public Member Functions

 GetTrianglesContextVertexList (Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale, Mat44Arg inLocalTransform, const Vec3 *inTriangleVertices, size_t inNumTriangleVertices, const PhysicsMaterial *inMaterial)
 Constructor, to be called in GetTrianglesStart.
 
int GetTrianglesNext (int inMaxTrianglesRequested, Float3 *outTriangleVertices, const PhysicsMaterial **outMaterials)
 

Static Public Member Functions

template<class A >
static void sCreateHalfUnitSphereTop (A &ioVertices, int inDetailLevel)
 Helper function that creates a vertex list of a half unit sphere (top part)
 
template<class A >
static void sCreateHalfUnitSphereBottom (A &ioVertices, int inDetailLevel)
 Helper function that creates a vertex list of a half unit sphere (bottom part)
 
template<class A >
static void sCreateUnitOpenCylinder (A &ioVertices, int inDetailLevel)
 Helper function that creates an open cylinder of half height 1 and radius 1.
 

Detailed Description

Implementation of GetTrianglesStart/Next that uses a fixed list of vertices for the triangles. These are transformed into world space when getting the triangles.

Constructor & Destructor Documentation

◆ GetTrianglesContextVertexList()

GetTrianglesContextVertexList::GetTrianglesContextVertexList ( Vec3Arg  inPositionCOM,
QuatArg  inRotation,
Vec3Arg  inScale,
Mat44Arg  inLocalTransform,
const Vec3 inTriangleVertices,
size_t  inNumTriangleVertices,
const PhysicsMaterial inMaterial 
)
inline

Constructor, to be called in GetTrianglesStart.

Member Function Documentation

◆ GetTrianglesNext()

int GetTrianglesContextVertexList::GetTrianglesNext ( int  inMaxTrianglesRequested,
Float3 outTriangleVertices,
const PhysicsMaterial **  outMaterials 
)
inline

◆ sCreateHalfUnitSphereBottom()

template<class A >
static void GetTrianglesContextVertexList::sCreateHalfUnitSphereBottom ( A &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates a vertex list of a half unit sphere (bottom part)

◆ sCreateHalfUnitSphereTop()

template<class A >
static void GetTrianglesContextVertexList::sCreateHalfUnitSphereTop ( A &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates a vertex list of a half unit sphere (top part)

◆ sCreateUnitOpenCylinder()

template<class A >
static void GetTrianglesContextVertexList::sCreateUnitOpenCylinder ( A &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates an open cylinder of half height 1 and radius 1.


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