Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine
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
Type | Name | Description | |
---|---|---|---|
![]() |
FVector | Center | Position of the sphere's origin |
![]() |
float | Radius | Radius of the sphere |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FKSphereElem () |
||
![]() |
FKSphereElem
(
float r |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FBox | CalcAABB
(
const FTransform& BoneTM, |
|
![]() ![]() |
void | DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
|
![]() ![]() |
void | DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
|
![]() ![]() |
void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
|
![]() |
void | FixupDeprecated
(
FArchive& Ar |
|
![]() ![]() |
float | GetClosestPointAndNormal
(
const FVector& WorldPosition, |
Finds the closest point on the shape given a world position. |
![]() ![]() |
void | GetElemSolid
(
const FTransform& ElemTM, |
|
![]() ![]() |
FKSphereElem | GetFinalScaled
(
const FVector& Scale3D, |
|
![]() ![]() |
FVector::FReal | GetScaledVolume
(
const FVector& Scale |
|
![]() ![]() |
float | GetShortestDistanceToPoint
(
const FVector& WorldPosition, |
Finds the shortest distance between the element and a world position. |
![]() ![]() |
FTransform | GetTransform () |
Utility function that builds an FTransform from the current data. |
![]() |
void | ScaleElem
(
FVector DeltaSize, |
|
![]() |
void | SetTransform
(
const FTransform& InTransform |
Overridden from FKShapeElem
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
Constants
Name | Description |
---|---|
StaticShapeType |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FMatrix | TM_DEPRECATED |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FVector::FReal | GetVolume
(
const FVector& Scale |
Changed to GetScaledVolume to support non-uniform scales on other element types |