Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine
Inheritance Hierarchy
- FKShapeElem
- FKSphylElem
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/SphylElem.h |
| Include | #include "PhysicsEngine/SphylElem.h" |
Syntax
USTRUCT ()
struct FKSphylElem : public FKShapeElem
Remarks
Capsule shape used for collision. Z axis is capsule axis.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | Center | Position of the capsule's origin | |
| float | Length | This is of line-segment ie. add Radius to both ends to find total length. | |
| float | Radius | Radius of the capsule | |
| FRotator | Rotation | Rotation of the capsule |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FKSphylElem () |
|||
FKSphylElem
(
float InRadius, |
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, |
||
| FKSphylElem | GetFinalScaled
(
const FVector& Scale3D, |
||
| float | GetScaledCylinderLength
(
const FVector& Scale3D |
Returns the scaled length of the cylinder part of the Sphyl | |
| float | GetScaledHalfLength
(
const FVector& Scale3D |
Returns half of the total scaled length of the Sphyl, which includes the scaled top and bottom caps | |
| float | GetScaledRadius
(
const FVector& Scale3D |
Returns the scaled radius for this Sphyl, which is determined by the Max scale on X/Y and clamped by half the total length | |
| 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. | |
| FVector::FReal | |||
| void | |||
| void | SetTransform
(
const FTransform& InTransform |
Overridden from FKShapeElem
| Type | Name | Description | |
|---|---|---|---|
| void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
Constants
| Name | Description |
|---|---|
| StaticShapeType |