Jolt Physics
A multi core friendly Game Physics Engine
|
A simple triangle and its material. More...
#include <Triangle.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | Triangle ()=default |
Constructor. | |
Triangle (const Float3 &inV1, const Float3 &inV2, const Float3 &inV3, uint32 inMaterialIndex=0, uint32 inUserData=0) | |
Triangle (Vec3Arg inV1, Vec3Arg inV2, Vec3Arg inV3, uint32 inMaterialIndex=0, uint32 inUserData=0) | |
Vec3 | GetCentroid () const |
Get center of triangle. | |
Public Attributes | |
Float3 | mV [3] |
Vertices. | |
uint32 | mMaterialIndex = 0 |
Follows mV[3] so that we can read mV as 4 vectors. | |
uint32 | mUserData = 0 |
User data that can be used for anything by the application, e.g. for tracking the original index of the triangle. | |
A simple triangle and its material.
|
default |
Constructor.
|
inline |
|
inline |
|
inline |
Get center of triangle.
uint32 Triangle::mMaterialIndex = 0 |
Follows mV[3] so that we can read mV as 4 vectors.
uint32 Triangle::mUserData = 0 |
User data that can be used for anything by the application, e.g. for tracking the original index of the triangle.
Float3 Triangle::mV[3] |
Vertices.