FKBoxElem

Box shape used for collision

Windows
MacOS
Linux

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

Name Description

Public variable

FVector

 

Center

Position of the box's origin

Public variable

FRotator

 

Rotation

Rotation of the box

Public variable

float

 

X

Extent of the box along the y-axis

Public variable

float

 

Y

Extent of the box along the y-axis

Public variable

float

 

Z

Extent of the box along the z-axis

Constructors

Name Description

Public function

FKBoxElem()

Public function

FKBoxElem

(
    float s
)

Public function

FKBoxElem

(
    float InX,
    float InY,
    float InZ
)

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

void

 

FixupDeprecated

(
    FArchive& Ar
)

Public function Const

float

 

GetClosestPointAndNormal

(
    const FVector& WorldPosition,
    const FTransform& BodyToWorldTM,
    FVector& ClosestWorldPosition,
    FVector& Normal
)

Finds the closest point on the shape given a world position.

Public function Const

void

 

GetElemSolid

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

Public function Const

FKBoxElem

 

GetFinalScaled

(
    const FVector& Scale3D,
    const FTransform& RelativeTM
)

Public function Const

float

 

GetShortestDistanceToPoint

(
    const FVector& WorldPosition,
    const FTransform& BodyToWorldTM
)

Finds the shortest distance between the element and a world position.

Public function Const

FTransform

 

GetTransform()

Utility function that builds an FTransform from the current data.

Public function Const

float

 

GetVolume

(
    const FVector& Scale3D
)

Public function

void

 

ScaleElem

(
    FVector DeltaSize,
    float MinSize
)

Public function

void

 

SetTransform

(
    const FTransform& InTransform
)

Constants

Name

Description

StaticShapeType

Deprecated Variables

Name Description

Public variable

FQuat

 

Orientation_DEPRECATED

Public variable

FMatrix

 

TM_DEPRECATED

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