UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FKShapeElem Struct Reference

#include <ShapeElem.h>

+ Inheritance diagram for FKShapeElem:

Public Member Functions

 FKShapeElem ()
 
 FKShapeElem (EAggCollisionShape::Type InShapeType)
 
 FKShapeElem (const FKShapeElem &Copy)
 
virtual ENGINE_API ~FKShapeElem ()
 
const FKShapeElemoperator= (const FKShapeElem &Other)
 
template<typename T >
T * GetShapeCheck ()
 
const FUserDataGetUserData () const
 
const FNameGetName () const
 
void SetName (const FName &InName)
 
EAggCollisionShape::Type GetShapeType () const
 
bool GetContributeToMass () const
 
void SetContributeToMass (bool bInContributeToMass)
 
void SetCollisionEnabled (ECollisionEnabled::Type InCollisionEnabled)
 
ECollisionEnabled::Type GetCollisionEnabled () const
 
virtual FTransform GetTransform () const
 
virtual void DrawElemWire (class FPrimitiveDrawInterface *PDI, const FTransform &ElemTM, const float Scale, const FColor Color) const
 
virtual void DrawElemSolid (class FPrimitiveDrawInterface *PDI, const FTransform &ElemTM, const float Scale, const class FMaterialRenderProxy *MaterialRenderProxy) const
 

Public Attributes

float RestOffset
 

Static Public Attributes

static ENGINE_API EAggCollisionShape::Type StaticShapeType = EAggCollisionShape::Unknown
 

Protected Member Functions

void CloneElem (const FKShapeElem &Other)
 

Detailed Description

Base class of shapes used for collision, such as Sphere, Box, Sphyl, Convex, TaperedCapsule or LevelSet

Constructor & Destructor Documentation

◆ FKShapeElem() [1/3]

FKShapeElem::FKShapeElem ( )
inline

◆ FKShapeElem() [2/3]

FKShapeElem::FKShapeElem ( EAggCollisionShape::Type  InShapeType)
inline

◆ FKShapeElem() [3/3]

FKShapeElem::FKShapeElem ( const FKShapeElem Copy)
inline

◆ ~FKShapeElem()

FKShapeElem::~FKShapeElem ( )
virtualdefault

Member Function Documentation

◆ CloneElem()

void FKShapeElem::CloneElem ( const FKShapeElem Other)
inlineprotected

Helper function to safely clone instances of this shape element

◆ DrawElemSolid()

virtual void FKShapeElem::DrawElemSolid ( class FPrimitiveDrawInterface PDI,
const FTransform ElemTM,
const float  Scale,
const class FMaterialRenderProxy MaterialRenderProxy 
) const
inlinevirtual

◆ DrawElemWire()

virtual void FKShapeElem::DrawElemWire ( class FPrimitiveDrawInterface PDI,
const FTransform ElemTM,
const float  Scale,
const FColor  Color 
) const
inlinevirtual

◆ GetCollisionEnabled()

ECollisionEnabled::Type FKShapeElem::GetCollisionEnabled ( ) const
inline

Get whether this shape should be considered for query or sim collision

◆ GetContributeToMass()

bool FKShapeElem::GetContributeToMass ( ) const
inline

Get whether this shape contributes to the mass of the body

◆ GetName()

const FName & FKShapeElem::GetName ( ) const
inline

Get the user-defined name for this shape

◆ GetShapeCheck()

template<typename T >
T * FKShapeElem::GetShapeCheck ( )
inline

◆ GetShapeType()

EAggCollisionShape::Type FKShapeElem::GetShapeType ( ) const
inline

Get the type of this shape

◆ GetTransform()

◆ GetUserData()

const FUserData * FKShapeElem::GetUserData ( ) const
inline

◆ operator=()

const FKShapeElem & FKShapeElem::operator= ( const FKShapeElem Other)
inline

◆ SetCollisionEnabled()

void FKShapeElem::SetCollisionEnabled ( ECollisionEnabled::Type  InCollisionEnabled)
inline

Set whether this shape should be considered for query or sim collision

◆ SetContributeToMass()

void FKShapeElem::SetContributeToMass ( bool  bInContributeToMass)
inline

Set whether this shape will contribute to the mass of the body

◆ SetName()

void FKShapeElem::SetName ( const FName InName)
inline

Set the user-defined name for this shape

Member Data Documentation

◆ RestOffset

float FKShapeElem::RestOffset

Offset used when generating contact points. This allows you to smooth out the Minkowski sum by radius R. Useful for making objects slide smoothly on top of irregularities

◆ StaticShapeType

EAggCollisionShape::Type FKShapeElem::StaticShapeType = EAggCollisionShape::Unknown
static

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