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