Navigation
API > API/Runtime > API/Runtime/Chaos
Like TGJKShape, but treats the shape as if it has a reduced "core" shape with a margin suitable for collision detection where significant overlaps are likely. This means spheres will be points, convexes will be rounded shrunken hulls, etc.
See also TGJKShape
E.g., to use GJK of a sphere as a point against a marginless convex: GJKDistance(TGJKCoreShape(MySphere), TGJKShape(MyConvex), ...);
| Name | TGJKCoreShape |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/GJKShape.h |
| Include Path | #include "Chaos/GJKShape.h" |
Syntax
template<typename T_SHAPE>
struct TGJKCoreShape
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TGJKCoreShape
(
const FShapeType& InShape |
Chaos/GJKShape.h | ||
TGJKCoreShape
(
const FShapeType& InShape, |
Chaos/GJKShape.h | ||
TGJKCoreShape
(
const FShapeType& InShape, |
Chaos/GJKShape.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FShapeType | T_SHAPE | Chaos/GJKShape.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Margin | const FRealSingle | Chaos/GJKShape.h | ||
| Shape | const FShapeType & | Chaos/GJKShape.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FReal GetMargin() |
Chaos/GJKShape.h | ||
FRealSingle GetMarginf() |
Chaos/GJKShape.h | ||
FVec3 InverseTransformPositionNoScale
(
const FVec3& V |
Chaos/GJKShape.h | ||
bool IsConvex() |
Chaos/GJKShape.h | ||
FVec3 SupportCore
(
const FVec3 Dir, |
Chaos/GJKShape.h | ||
FString ToString() |
Chaos/GJKShape.h |