Module |
|
Header |
/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/GJKShape.h |
Include |
#include "Chaos/GJKShape.h" |
template<typename T_SHAPE>
struct TGJKShape
Helpers and Wrappers for use with GJK to select the appropriate margin and support function based on context. A different margin is used for sweeps and collisions, and margins are used or not depending on the shape pair type involved.Wraps an FImplicitObject and provides the API required for GJK, treating the shape as if it has zero margin. This means spheres will be spheres, convexes will be the outer hull, etc.
See also TGJKCoreShape
E.g., to use GJK of a sphere as a point against a marginless convex: GJKDistance(TGJKCoreShape(MySphere), TGJKShape(MyConvex), ...);
Name | Description | |
---|---|---|
|
TGJKShape ( |
Name | Description | ||
---|---|---|---|
|
GetMargin() |
||
|
IsConvex() |
||
|
SupportCore |
Name |
Description |
---|---|
FImplicitObjectType |