FKShapeElem

Sphere shape used for collision

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ShapeElem.h

Include

#include "PhysicsEngine/ShapeElem.h"

Syntax

struct FKShapeElem

Remarks

Sphere shape used for collision

Variables

Name Description

Public variable

uint8: 1

 

bIsGenerated

True when the shape was created by the engine and was not imported.

Public variable

float

 

RestOffset

Offset used when generating contact points.

Constructors

Name Description

Public function

FKShapeElem()

Public function

FKShapeElem

(
    EAggCollisionShape::Type InShapeTyp...
)

Public function

FKShapeElem

(
    const FKShapeElem& Copy
)

Destructors

Name Description

Public function Virtual

~FKShapeElem()

Functions

Name Description

Protected function

void

 

CloneElem

(
    const FKShapeElem& Other
)

Helper function to safely clone instances of this shape element

Public function Const

ECollisionEn...

 

GetCollisionEnabled()

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

Public function Const

bool

 

GetContributeToMass()

Get whether this shape contributes to the mass of the body

Public function Const

const FName ...

 

GetName()

Get the user-defined name for this shape

Public function

T *

 

GetShapeCheck()

Public function Const

const FUserD...

 

GetUserData()

Public function

void

 

SetContributeToMass

(
    bool bInContributeToMass
)

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

Public function

void

 

SetName

(
    const FName& InName
)

Set the user-defined name for this shape

Operators

Name Description

Public function

const FKShap...

 

operator=

(
    const FKShapeElem& Other
)

Constants

Name

Description

StaticShapeType

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