Navigation
API > API/Runtime > API/Runtime/Chaos
Internal simplex data for GJK that can also be stored for warm-starting subsequent calls.
| Name | TGJKSimplexData |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/GJK.h |
| Include Path | #include "Chaos/GJK.h" |
Syntax
template<typename T>
class TGJKSimplexData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGJKSimplexData() |
Chaos/GJK.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxSimplexVerts | const int32 | Maximum number of vertices that a GJK simplex can have. | Chaos/GJK.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| As | TVec3< T > | Simplex vertices on shape A, in A-local space. | Chaos/GJK.h | |
| Barycentric | T | Barycentric coordinates of closest point to origin on the simplex. | Chaos/GJK.h | |
| Bs | TVec3< T > | Simplex vertices on shape B, in B-local space. | Chaos/GJK.h | |
| NumVerts | int32 | Number of vertices in the simplex. Up to 4. | Chaos/GJK.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Reset() |
Clear the data - used to start a GJK search from the default search direction. | Chaos/GJK.h | |
void Restore
(
const TRigidTransform< T, 3 >& BToATM, |
Recompute the Simplex and separating vector from the stored data at the current relative transform This aborts if we have no simplex data to restore or the origin is inside the simplex. | Chaos/GJK.h | |
void Restore2
(
const TRigidTransform< T, 3 >& BToATM, |
Chaos/GJK.h | ||
void Save
(
const FSimplex InSimplexIDs |
Save any data that was not directly updated while iterating in GJK. | Chaos/GJK.h |