Navigation
API > API/Runtime > API/Runtime/Chaos
Data returned by TriangleMesh point-triangle and edge-edge queries.
| Name | TTriangleCollisionPoint |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TriangleCollisionPoint.h |
| Include Path | #include "Chaos/TriangleCollisionPoint.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/TriangleMesh.h |
Syntax
template<typename T>
struct TTriangleCollisionPoint
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTriangleCollisionPoint() |
Chaos/TriangleCollisionPoint.h |
Enums
Public
| Name | Remarks |
|---|---|
| EContactType | Type of contact (determines meaning of some properties below such as Indices and BarycentricCoordinates) |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Bary | TVec4< T > | Barycentric coordinates for contacts Point-Face: Bary[0] = 1.0 (Point), Bary[1:3] correspond with coordinates on Face Edge-Edge: Bary[0:1] = coordinates on first edge, [2:3] coordinates on second edge Edge-Face: Bary[0] = second coordinate on edge (first can be calculated as 1-Bary[0], Bary[1:3] correspond with coordinates on Face | Chaos/TriangleCollisionPoint.h | |
| ContactType | enum Chaos::TTriangleCollisionPoint::EContactType | Chaos/TriangleCollisionPoint.h | ||
| Indices | int32 | Index into Point and Face arrays or Edge arrays. | Chaos/TriangleCollisionPoint.h | |
| Location | TVec3< T > | World space location (which point depends on query type) | Chaos/TriangleCollisionPoint.h | |
| Normal | TVec3< T > | World space normal (which normal depends on query type) | Chaos/TriangleCollisionPoint.h | |
| Phi | T | Contact separation (negative for overlap) | Chaos/TriangleCollisionPoint.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsSet() |
Whether the contact point has been set up with contact data. | Chaos/TriangleCollisionPoint.h |