FKSphereElem

Sphere shape used for collision

Windows
MacOS
Linux

Inheritance Hierarchy

FKShapeElem

FKSphereElem

References

Module

Engine

Header

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

Include

#include "PhysicsEngine/SphereElem.h"

Syntax

struct FKSphereElem : public FKShapeElem

Remarks

Sphere shape used for collision

Variables

Name Description

Public variable

FVector

 

Center

Position of the sphere's origin

Public variable

float

 

Radius

Radius of the sphere

Constructors

Name Description

Public function

FKSphereElem()

Public function

FKSphereElem

(
    float r
)

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

FKSphereElem

 

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& Scale
)

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

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