UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Chaos::TGJKShape< T_SHAPE > Struct Template Reference

#include <GJKShape.h>

Public Types

using FShapeType = T_SHAPE
 

Public Member Functions

 TGJKShape (const FShapeType &InShape)
 
FVec3 InverseTransformPositionNoScale (const FVec3 &V) const
 
FReal GetMargin () const
 
FRealSingle GetMarginf () const
 
FVec3 SupportCore (const FVec3 Dir, const FReal InMargin, FReal *OutSupportDelta, int32 &VertexIndex) const
 
bool IsConvex () const
 
FString ToString () const
 

Public Attributes

const FShapeTypeShape
 

Detailed Description

template<typename T_SHAPE>
struct Chaos::TGJKShape< T_SHAPE >

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.

Member Typedef Documentation

◆ FShapeType

template<typename T_SHAPE >
using Chaos::TGJKShape< T_SHAPE >::FShapeType = T_SHAPE

Constructor & Destructor Documentation

◆ TGJKShape()

template<typename T_SHAPE >
Chaos::TGJKShape< T_SHAPE >::TGJKShape ( const FShapeType InShape)
inline

Member Function Documentation

◆ GetMargin()

template<typename T_SHAPE >
FReal Chaos::TGJKShape< T_SHAPE >::GetMargin ( ) const
inline

◆ GetMarginf()

template<typename T_SHAPE >
FRealSingle Chaos::TGJKShape< T_SHAPE >::GetMarginf ( ) const
inline

◆ InverseTransformPositionNoScale()

template<typename T_SHAPE >
FVec3 Chaos::TGJKShape< T_SHAPE >::InverseTransformPositionNoScale ( const FVec3 V) const
inline

◆ IsConvex()

template<typename T_SHAPE >
bool Chaos::TGJKShape< T_SHAPE >::IsConvex ( ) const
inline

◆ SupportCore()

template<typename T_SHAPE >
FVec3 Chaos::TGJKShape< T_SHAPE >::SupportCore ( const FVec3  Dir,
const FReal  InMargin,
FReal OutSupportDelta,
int32 VertexIndex 
) const
inline

◆ ToString()

template<typename T_SHAPE >
FString Chaos::TGJKShape< T_SHAPE >::ToString ( ) const
inline

Member Data Documentation

◆ Shape

template<typename T_SHAPE >
const FShapeType& Chaos::TGJKShape< T_SHAPE >::Shape

The documentation for this struct was generated from the following file: