Navigation
API > API/Runtime > API/Runtime/Engine
Sphere shape used for collision
| Name | FKSphereElem |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/SphereElem.h |
| Include Path | #include "PhysicsEngine/SphereElem.h" |
Syntax
USTRUCT ()
struct FKSphereElem : public FKShapeElem
Inheritance Hierarchy
- FKShapeElem → FKSphereElem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FKSphereElem () |
PhysicsEngine/SphereElem.h | ||
FKSphereElem
(
float r |
PhysicsEngine/SphereElem.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FKSphereElem() |
PhysicsEngine/SphereElem.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticShapeType | EAggCollisionShape::Type | PhysicsEngine/SphereElem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Center | FVector | Position of the sphere's origin | PhysicsEngine/SphereElem.h |
|
| Radius | float | Radius of the sphere | PhysicsEngine/SphereElem.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBox CalcAABB
(
const FTransform& BoneTM, |
PhysicsEngine/SphereElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/SphereElem.h | ||
void DrawElemSolid
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/SphereElem.h | ||
void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/SphereElem.h | ||
void FixupDeprecated
(
FArchive& Ar |
PhysicsEngine/SphereElem.h | ||
float GetClosestPointAndNormal
(
const FVector& WorldPosition, |
Finds the closest point on the shape given a world position. | PhysicsEngine/SphereElem.h | |
void GetElemSolid
(
const FTransform& ElemTM, |
PhysicsEngine/SphereElem.h | ||
FKSphereElem GetFinalScaled
(
const FVector& Scale3D, |
PhysicsEngine/SphereElem.h | ||
FVector::FReal GetScaledVolume
(
const FVector& Scale |
PhysicsEngine/SphereElem.h | ||
float GetShortestDistanceToPoint
(
const FVector& WorldPosition, |
Finds the shortest distance between the element and a world position. | PhysicsEngine/SphereElem.h | |
FVector::FReal GetVolume
(
const FVector& Scale |
PhysicsEngine/SphereElem.h | ||
void ScaleElem
(
FVector DeltaSize, |
PhysicsEngine/SphereElem.h | ||
void SetTransform
(
const FTransform& InTransform |
PhysicsEngine/SphereElem.h |
Overridden from FKShapeElem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawElemWire
(
FPrimitiveDrawInterface* PDI, |
PhysicsEngine/SphereElem.h | ||
virtual FTransform GetTransform() |
Utility function that builds an FTransform from the current data. | PhysicsEngine/SphereElem.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TM_DEPRECATED | FMatrix | PhysicsEngine/SphereElem.h |