Navigation
API > API/Runtime > API/Runtime/Engine
Box shape used for collision
| Name | FKBoxElem |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BoxElem.h |
| Include Path | #include "PhysicsEngine/BoxElem.h" |
Syntax
USTRUCT ()
struct FKBoxElem : public FKShapeElem
Inheritance Hierarchy
- FKShapeElem → FKBoxElem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FKBoxElem () |
PhysicsEngine/BoxElem.h | ||
FKBoxElem
(
float s |
PhysicsEngine/BoxElem.h | ||
FKBoxElem
(
float InX, |
PhysicsEngine/BoxElem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FKBoxElem() |
PhysicsEngine/BoxElem.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticShapeType | EAggCollisionShape::Type | PhysicsEngine/BoxElem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Center | FVector | Position of the box's origin | PhysicsEngine/BoxElem.h |
|
| Rotation | FRotator | Rotation of the box | PhysicsEngine/BoxElem.h |
|
| X | float | Extent of the box along the x-axis | PhysicsEngine/BoxElem.h |
|
| Y | float | Extent of the box along the y-axis | PhysicsEngine/BoxElem.h |
|
| Z | float | Extent of the box along the z-axis | PhysicsEngine/BoxElem.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBox CalcAABB
(
const FTransform& BoneTM, |
PhysicsEngine/BoxElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/BoxElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/BoxElem.h | ||
void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/BoxElem.h | ||
void FixupDeprecated
(
FArchive& Ar |
PhysicsEngine/BoxElem.h | ||
float GetClosestPointAndNormal
(
const FVector& WorldPosition, |
Finds the closest point on the shape given a world position. | PhysicsEngine/BoxElem.h | |
void GetElemSolid
(
const FTransform& ElemTM, |
PhysicsEngine/BoxElem.h | ||
FKBoxElem GetFinalScaled
(
const FVector& Scale3D, |
PhysicsEngine/BoxElem.h | ||
FVector::FReal GetScaledVolume
(
const FVector& Scale3D |
PhysicsEngine/BoxElem.h | ||
float GetShortestDistanceToPoint
(
const FVector& WorldPosition, |
Finds the shortest distance between the element and a world position. | PhysicsEngine/BoxElem.h | |
FVector::FReal GetVolume
(
const FVector& Scale3D |
PhysicsEngine/BoxElem.h | ||
void ScaleElem
(
FVector DeltaSize, |
PhysicsEngine/BoxElem.h | ||
void SetTransform
(
const FTransform& InTransform |
PhysicsEngine/BoxElem.h |
Overridden from FKShapeElem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/BoxElem.h | ||
virtual FTransform GetTransform() |
Utility function that builds an FTransform from the current data. | PhysicsEngine/BoxElem.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Orientation_DEPRECATED | FQuat | PhysicsEngine/BoxElem.h | ||
| TM_DEPRECATED | FMatrix | PhysicsEngine/BoxElem.h |