Navigation
API > API/Runtime > API/Runtime/Engine
Base class of shapes used for collision, such as Sphere, Box, Sphyl, Convex, TaperedCapsule or LevelSet
| Name | FKShapeElem |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/ShapeElem.h |
| Include Path | #include "PhysicsEngine/ShapeElem.h" |
Syntax
USTRUCT ()
struct FKShapeElem
Derived Classes
FKShapeElem derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FKShapeElem () |
PhysicsEngine/ShapeElem.h | ||
FKShapeElem
(
EAggCollisionShape::Type InShapeType |
PhysicsEngine/ShapeElem.h | ||
FKShapeElem
(
const FKShapeElem& Copy |
PhysicsEngine/ShapeElem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FKShapeElem() |
PhysicsEngine/ShapeElem.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticShapeType | EAggCollisionShape::Type | PhysicsEngine/ShapeElem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsGenerated | uint8 | True when the shape was created by the engine and was not imported. | PhysicsEngine/ShapeElem.h |
|
| RestOffset | float | Offset used when generating contact points. | PhysicsEngine/ShapeElem.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bContributeToMass | uint8 | True if this shape should contribute to the overall mass of the body it belongs to. | PhysicsEngine/ShapeElem.h |
|
| CollisionEnabled | TEnumAsByte< ECollisionEnabled::Type > | Course per-primitive collision filtering. | PhysicsEngine/ShapeElem.h |
|
| Name | FName | User-defined name for this shape | PhysicsEngine/ShapeElem.h |
|
| ShapeType | EAggCollisionShape::Type | PhysicsEngine/ShapeElem.h | ||
| UserData | FUserData | PhysicsEngine/ShapeElem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/ShapeElem.h | ||
virtual void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/ShapeElem.h | ||
ECollisionEnabled::Type GetCollisionEnabled() |
Get whether this shape should be considered for query or sim collision | PhysicsEngine/ShapeElem.h | |
bool GetContributeToMass() |
Get whether this shape contributes to the mass of the body | PhysicsEngine/ShapeElem.h | |
const FName & GetName() |
Get the user-defined name for this shape | PhysicsEngine/ShapeElem.h | |
T * GetShapeCheck() |
PhysicsEngine/ShapeElem.h | ||
EAggCollisionShape::Type GetShapeType() |
Get the type of this shape | PhysicsEngine/ShapeElem.h | |
virtual FTransform GetTransform() |
PhysicsEngine/ShapeElem.h | ||
const FUserData * GetUserData() |
PhysicsEngine/ShapeElem.h | ||
void SetCollisionEnabled
(
ECollisionEnabled::Type InCollisionEnabled |
Set whether this shape should be considered for query or sim collision | PhysicsEngine/ShapeElem.h | |
void SetContributeToMass
(
bool bInContributeToMass |
Set whether this shape will contribute to the mass of the body | PhysicsEngine/ShapeElem.h | |
void SetName
(
const FName& InName |
Set the user-defined name for this shape | PhysicsEngine/ShapeElem.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CloneElem
(
const FKShapeElem& Other |
Helper function to safely clone instances of this shape element | PhysicsEngine/ShapeElem.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FKShapeElem & operator=
(
const FKShapeElem& Other |
PhysicsEngine/ShapeElem.h |