FKTaperedCapsuleElem

Capsule shape used for collision.

Windows
MacOS
Linux

Inheritance Hierarchy

FKShapeElem

FKTaperedCapsuleElem

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/TaperedCapsuleElem.h

Include

#include "PhysicsEngine/TaperedCapsuleElem.h"

Syntax

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

Name Description

Public variable

FVector

 

Center

Position of the capsule's origin

Public variable

float

 

Length

Length of line-segment. Add Radius0 and Radius 1 to find total length.

Public variable

float

 

Radius0

Radius of the capsule start point

Public variable

float

 

Radius1

Radius of the capsule end point

Public variable

FRotator

 

Rotation

Rotation of the capsule

Constructors

Name Description

Public function

FKTaperedCapsuleElem()

Public function

FKTaperedCapsuleElem

(
    float InRadius0,
    float InRadius1,
    float InLength
)

Functions

Name Description

Public function Const

FBox

 

CalcAABB

(
    const FTransform& BoneTM,
    float Scale
)

Public function Const

void

 

DrawElemSolid

(
    FPrimitiveDrawInterface* PDI,
    const FTransform& ElemTM,
    const FVector& Scale3D,
    const FMaterialRenderProxy* Ma...
)

Public function Const

void

 

DrawElemWire

(
    FPrimitiveDrawInterface* PDI,
    const FTransform& ElemTM,
    const FVector& Scale3D,
    const FColor Color
)

Public function Static

void

 

DrawTaperedCapsuleSides

(
    FPrimitiveDrawInterface* PDI,
    const FTransform& ElemTM,
    const FVector& InCenter0,
    const FVector& InCenter1,
    float InRadius0,
    float InRadius1,
    const FColor& Color
)

Draws just the sides of a tapered capsule specified by provided Spheres that can have different radii.

Public function Const

void

 

GetElemSolid

(
    const FTransform& ElemTM,
    const FVector& Scale3D,
    const FMaterialRenderProxy* Ma...,
    int32 ViewIndex,
    FMeshElementCollector& Collector
)

Public function Const

FKTaperedCap...

 

GetFinalScaled

(
    const FVector& Scale3D,
    const FTransform& RelativeTM
)

Public function Const

float

 

GetScaledCylinderLength

(
    const FVector& Scale3D
)

Returns the scaled length of the cylinder part of the Sphyl

Public function Const

float

 

GetScaledHalfLength

(
    const FVector& Scale3D
)

Returns half of the total scaled length of the Sphyl, which includes the scaled top and bottom caps

Public function Const

void

 

GetScaledRadii

(
    const FVector& Scale3D,
    float& OutRadius0,
    float& OutRadius1
)

Returns the scaled radius for this Sphyl, which is determined by the Max scale on X/Y and clamped by half the total length

Public function Const

FTransform

 

GetTransform()

Utility function that builds an FTransform from the current data.

Public function

void

 

ScaleElem

(
    FVector DeltaSize,
    float MinSize
)

Public function

void

 

SetTransform

(
    const FTransform& InTransform
)

Constants

Name

Description

StaticShapeType

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss