![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShapeElem.h>
Inheritance diagram for FKShapeElem:Public Member Functions | |
| FKShapeElem () | |
| FKShapeElem (EAggCollisionShape::Type InShapeType) | |
| FKShapeElem (const FKShapeElem &Copy) | |
| virtual ENGINE_API | ~FKShapeElem () |
| const FKShapeElem & | operator= (const FKShapeElem &Other) |
| template<typename T > | |
| T * | GetShapeCheck () |
| const FUserData * | GetUserData () const |
| const FName & | GetName () 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) |
Base class of shapes used for collision, such as Sphere, Box, Sphyl, Convex, TaperedCapsule or LevelSet
|
inline |
|
inline |
|
inline |
|
virtualdefault |
|
inlineprotected |
Helper function to safely clone instances of this shape element
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in FKConvexElem, FKLevelSetElem, FKMLLevelSetElem, FKSkinnedLevelSetElem, FKSkinnedTriangleMeshElem, FKBoxElem, FKSphereElem, FKSphylElem, and FKTaperedCapsuleElem.
|
inline |
Get whether this shape should be considered for query or sim collision
|
inline |
Get whether this shape contributes to the mass of the body
|
inline |
Get the user-defined name for this shape
|
inline |
|
inline |
Get the type of this shape
|
inlinevirtual |
Reimplemented in FKBoxElem, FKConvexElem, FKLevelSetElem, FKMLLevelSetElem, FKSkinnedLevelSetElem, FKSkinnedTriangleMeshElem, FKSphereElem, FKSphylElem, and FKTaperedCapsuleElem.
|
inline |
|
inline |
|
inline |
Set whether this shape should be considered for query or sim collision
Set whether this shape will contribute to the mass of the body
| 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
|
static |