Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine
Inheritance Hierarchy
- FKShapeElem
- FKTaperedCapsuleElem
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/TaperedCapsuleElem.h |
| Include | #include "PhysicsEngine/TaperedCapsuleElem.h" |
Syntax
USTRUCT ()
struct FKTaperedCapsuleElem : public FKShapeElem
Remarks
Capsule shape used for collision. Z axis is capsule axis. Has a start and end radius that can differ.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | Center | Position of the capsule's origin | |
| float | Length | Length of line-segment. Add Radius0 and Radius 1 to find total length. | |
| float | Radius0 | Radius of the capsule start point | |
| float | Radius1 | Radius of the capsule end point | |
| FRotator | Rotation | Rotation of the capsule |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FKTaperedCapsuleElem
(
const FKTaperedCapsuleElem& |
|||
FKTaperedCapsuleElem
(
float InRadius0, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FBox | CalcAABB
(
const FTransform& BoneTM, |
||
| void | DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
||
| void | DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
||
| void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
||
| void | DrawTaperedCapsuleSides
(
FPrimitiveDrawInterface* PDI, |
Draws just the sides of a tapered capsule specified by provided Spheres that can have different radii. | |
| void | GetElemSolid
(
const FTransform& ElemTM, |
||
| FKTaperedCapsuleElem | 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 | |
| void | GetScaledRadii
(
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 | |
| FTransform | GetTransform () |
Utility function that builds an FTransform from the current data. | |
| void | |||
| void | SetTransform
(
const FTransform& InTransform |
Overridden from FKShapeElem
| Type | Name | Description | |
|---|---|---|---|
| void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
Constants
| Name | Description |
|---|---|
| StaticShapeType |