Navigation
API > API/Runtime > API/Runtime/Chaos
A triangle plus some extended data and state Should be a member of FMeshContactGenerator but that causes natvis issues.
| Name | FMeshContactGeneratorTriangle |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/MeshContactGenerator.h |
| Include Path | #include "Chaos/Collision/MeshContactGenerator.h" |
Syntax
class FMeshContactGeneratorTriangle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshContactGeneratorTriangle
(
const FTriangle& InTriangle, |
Chaos/Collision/MeshContactGenerator.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InvalidNormalMarker | FReal | Chaos/Collision/MeshContactGenerator.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnabled | bool | Chaos/Collision/MeshContactGenerator.h | ||
| Normal | FVec3 | Chaos/Collision/MeshContactGenerator.h | ||
| NumFaceEdgeCollisions | int8 | Chaos/Collision/MeshContactGenerator.h | ||
| Triangle | FTriangle | Chaos/Collision/MeshContactGenerator.h | ||
| TriangleIndex | int32 | Chaos/Collision/MeshContactGenerator.h | ||
| VertexIndices | int32 | Chaos/Collision/MeshContactGenerator.h | ||
| VisitIndex | int8 | Chaos/Collision/MeshContactGenerator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddFaceEdgeCollision() |
Chaos/Collision/MeshContactGenerator.h | ||
FVec3 GetCentroid() |
Chaos/Collision/MeshContactGenerator.h | ||
bool GetIsEnabled() |
Chaos/Collision/MeshContactGenerator.h | ||
int32 GetLocalVertexIndexAt
(
const FVec3& InPos, |
Chaos/Collision/MeshContactGenerator.h | ||
const FVec3 & GetNormal() |
Chaos/Collision/MeshContactGenerator.h | ||
int32 GetNumFaceEdgeCollisions() |
Chaos/Collision/MeshContactGenerator.h | ||
bool GetOtherVertexIDs
(
const int32 VertexID, |
Chaos/Collision/MeshContactGenerator.h | ||
bool GetOtherVerticesFromID
(
const int32 VertexID, |
Get the positions of the other two vertices in the triangle. (VertexIndex is an index into the owning mesh's vertices) | Chaos/Collision/MeshContactGenerator.h | |
const FTriangle & GetTriangle() |
Chaos/Collision/MeshContactGenerator.h | ||
int32 GetTriangleIndex() |
Chaos/Collision/MeshContactGenerator.h | ||
const FVec3 & GetVertex
(
const int32 LocalVertexIndex |
Get the vertex for the triangle-local vertex index [0,2]. | Chaos/Collision/MeshContactGenerator.h | |
int32 GetVertexIDAt
(
const FVec3& InPos, |
Chaos/Collision/MeshContactGenerator.h | ||
int32 GetVertexIndex
(
const int32 LocalIndex |
Chaos/Collision/MeshContactGenerator.h | ||
bool GetVertexWithID
(
const int32 VertexID, |
Get the vertex position from the vertex ID (not the triangle-local vertex index) | Chaos/Collision/MeshContactGenerator.h | |
int8 GetVisitIndex() |
Chaos/Collision/MeshContactGenerator.h | ||
bool HasVertexID
(
const int32 VertexIndex |
Does this triangle contains the specified vertex? (VertexIndex is an index into the owning mesh's vertices) | Chaos/Collision/MeshContactGenerator.h | |
void SetEnabled
(
const bool bInEnabled |
Chaos/Collision/MeshContactGenerator.h | ||
void SetVisitIndex
(
const int8 InVisitIndex |
Chaos/Collision/MeshContactGenerator.h |