Jolt Physics
A multi core friendly Game Physics Engine
|
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 | |
static void | sCreateHalfUnitSphereTop (std::vector< Vec3 > &ioVertices, int inDetailLevel) |
Helper function that creates a vertex list of a half unit sphere (top part) | |
static void | sCreateHalfUnitSphereBottom (std::vector< Vec3 > &ioVertices, int inDetailLevel) |
Helper function that creates a vertex list of a half unit sphere (bottom part) | |
static void | sCreateUnitOpenCylinder (std::vector< Vec3 > &ioVertices, int inDetailLevel) |
Helper function that creates an open cylinder of half height 1 and radius 1. | |
Implementation of GetTrianglesStart/Next that uses a fixed list of vertices for the triangles. These are transformed into world space when getting the triangles.
|
inline |
Constructor, to be called in GetTrianglesStart.
|
inline |
|
inlinestatic |
Helper function that creates a vertex list of a half unit sphere (bottom part)
|
inlinestatic |
Helper function that creates a vertex list of a half unit sphere (top part)
|
inlinestatic |
Helper function that creates an open cylinder of half height 1 and radius 1.