TGJKCoreShape

Wraps an [FImplicitObject](API\Runtime\Chaos\Chaos\FImplicitObject) and provides the API required for GJK, treating the shape as if it has a reduced "core" shape with a margin suitable for collision detection where significant overlaps are likely.

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 TGJKCoreShape

Remarks

Wraps an FImplicitObject and provides the API required for GJK, treating 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), ...);

Variables

Name Description

Public variable

const FReal

 

Margin

Public variable

const FImplicit...

 

Shape

Constructors

Name Description

Public function

TGJKCoreShape

(
    const FImplicitObjectType& InShape
)

Public function

TGJKCoreShape

(
    const FImplicitObjectType& InShape,
    FReal InMargin
)

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