TGJKShape

Helpers and Wrappers for use with GJK to select the appropriate margin and support function based on context.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/GJKShape.h

Include

#include "Chaos/GJKShape.h"

Syntax

template<typename T_SHAPE>
struct TGJKShape

Remarks

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), ...);

Variables

Name Description

Public variable

const FImplicit...

 

Shape

Constructors

Name Description

Public function

TGJKShape

(
    const FImplicitObjectType& InShape
)

Functions

Name Description

Public function Const

FReal

 

GetMargin()

Public function Const

bool

 

IsConvex()

Public function Const

FVec3

 

SupportCore

(
    const FVec3 Dir,
    FReal InMargin
)

Typedefs

Name

Description

FImplicitObjectType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss