Navigation
API > API/Runtime > API/Runtime/Chaos
Data held alongside contact points when generating contacts against a (likely non-convex) mesh of triangles.
| Name | FContactTriangle |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Collision/ContactTriangles.h |
| Include Path | #include "Chaos/Collision/ContactTriangles.h" |
Syntax
class FContactTriangle
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FaceNormal | FVec3 | Chaos/Collision/ContactTriangles.h | ||
| TriangleIndex | int32 | Chaos/Collision/ContactTriangles.h | ||
| VertexIndices | int32 | Indices into the mesh (trimesh or heightfield) that generated the triangle. | Chaos/Collision/ContactTriangles.h | |
| Vertices | FVec3 | Triangle data. | Chaos/Collision/ContactTriangles.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVec3 GetCentroid() |
Get the centroid of the triangle. | Chaos/Collision/ContactTriangles.h | |
bool GetEdgeVerticesAtPosition
(
const FVec3& ContactPosition, |
Given a contact point on a triangle, check if it is an edge contact or vertex contact and return vertex indices if so | Chaos/Collision/ContactTriangles.h | |
bool GetOtherVertexPositions
(
const int32 VertexIndex, |
Get the positions of the other two vertices in the triangle. (VertexIndex is an index into the owning mesh's vertices) | Chaos/Collision/ContactTriangles.h | |
bool HasVertexIndex
(
const int32 VertexIndex |
Does this triangle contains the specified vertex? (VertexIndex is an index into the owning mesh's vertices) | Chaos/Collision/ContactTriangles.h |