Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine
Inheritance Hierarchy
- FKShapeElem
- FKBoxElem
- FKConvexElem
- FKLevelSetElem
- FKSkinnedLevelSetElem
- FKSphereElem
- FKSphylElem
- FKTaperedCapsuleElem
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ShapeElem.h |
| Include | #include "PhysicsEngine/ShapeElem.h" |
Syntax
struct FKShapeElem
Remarks
Base class of shapes used for collision, such as Sphere, Box, Sphyl, Convex, TaperedCapsule or LevelSet
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bIsGenerated | True when the shape was created by the engine and was not imported. | |
| float | RestOffset | Offset used when generating contact points. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FKShapeElem () |
|||
FKShapeElem
(
EAggCollisionShape::Type InShapeType |
|||
FKShapeElem
(
const FKShapeElem& Copy |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FKShapeElem () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CloneElem
(
const FKShapeElem& Other |
Helper function to safely clone instances of this shape element | |
| void | DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
||
| void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
||
| ECollisionEnabled::Type | Get whether this shape should be considered for query or sim collision | ||
| bool | Get whether this shape contributes to the mass of the body | ||
| const FName & | GetName () |
Get the user-defined name for this shape | |
| T * | |||
| EAggCollisionShape::Type | GetShapeType () |
Get the type of this shape | |
| const FUserData * | GetUserData () |
||
| void | SetCollisionEnabled
(
ECollisionEnabled::Type InCollisionEnabled |
Set whether this shape should be considered for query or sim collision | |
| void | SetContributeToMass
(
bool bInContributeToMass |
Set whether this shape will contribute to the mass of the body | |
| void | Set the user-defined name for this shape |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const FKShapeElem & | operator=
(
const FKShapeElem& Other |
Constants
| Name | Description |
|---|---|
| StaticShapeType |