Navigation
API > API/Runtime > API/Runtime/Engine
Capsule shape used for collision. Z axis is capsule axis. Has a start and end radius that can differ.
| Name | FKTaperedCapsuleElem |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/TaperedCapsuleElem.h |
| Include Path | #include "PhysicsEngine/TaperedCapsuleElem.h" |
Syntax
USTRUCT ()
struct FKTaperedCapsuleElem : public FKShapeElem
Inheritance Hierarchy
- FKShapeElem → FKTaperedCapsuleElem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| PhysicsEngine/TaperedCapsuleElem.h | |||
FKTaperedCapsuleElem
(
float InRadius0, |
PhysicsEngine/TaperedCapsuleElem.h | ||
FKTaperedCapsuleElem
(
const FKTaperedCapsuleElem& |
PhysicsEngine/TaperedCapsuleElem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FKTaperedCapsuleElem() |
PhysicsEngine/TaperedCapsuleElem.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticShapeType | EAggCollisionShape::Type | PhysicsEngine/TaperedCapsuleElem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bOneSidedCollision | bool | (Cloth-only) Treat as one-sided collider, where all collisions are pushed to the +x side. | PhysicsEngine/TaperedCapsuleElem.h |
|
| Center | FVector | Position of the capsule's origin | PhysicsEngine/TaperedCapsuleElem.h |
|
| Length | float | Length of line-segment. Add Radius0 and Radius 1 to find total length. | PhysicsEngine/TaperedCapsuleElem.h |
|
| Radius0 | float | Radius of the capsule start point | PhysicsEngine/TaperedCapsuleElem.h |
|
| Radius1 | float | Radius of the capsule end point | PhysicsEngine/TaperedCapsuleElem.h |
|
| Rotation | FRotator | Rotation of the capsule | PhysicsEngine/TaperedCapsuleElem.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBox CalcAABB
(
const FTransform& BoneTM, |
PhysicsEngine/TaperedCapsuleElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/TaperedCapsuleElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/TaperedCapsuleElem.h | ||
void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/TaperedCapsuleElem.h | ||
void GetElemSolid
(
const FTransform& ElemTM, |
PhysicsEngine/TaperedCapsuleElem.h | ||
FKTaperedCapsuleElem GetFinalScaled
(
const FVector& Scale3D, |
PhysicsEngine/TaperedCapsuleElem.h | ||
float GetScaledCylinderLength
(
const FVector& Scale3D |
Returns the scaled length of the cylinder part of the Sphyl | PhysicsEngine/TaperedCapsuleElem.h | |
float GetScaledHalfLength
(
const FVector& Scale3D |
Returns half of the total scaled length of the Sphyl, which includes the scaled top and bottom caps | PhysicsEngine/TaperedCapsuleElem.h | |
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 | PhysicsEngine/TaperedCapsuleElem.h | |
void ScaleElem
(
FVector DeltaSize, |
PhysicsEngine/TaperedCapsuleElem.h | ||
void SetTransform
(
const FTransform& InTransform |
PhysicsEngine/TaperedCapsuleElem.h |
Overridden from FKShapeElem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/TaperedCapsuleElem.h | ||
virtual FTransform GetTransform() |
Utility function that builds an FTransform from the current data. | PhysicsEngine/TaperedCapsuleElem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void DrawTaperedCapsuleSides
(
FPrimitiveDrawInterface* PDI, |
Draws just the sides of a tapered capsule specified by provided Spheres that can have different radii. | PhysicsEngine/TaperedCapsuleElem.h |