Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine > FKSphereElem
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/SphereElem.h |
Include | #include "PhysicsEngine/SphereElem.h" |
Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
float GetShortestDistanceToPoint
&40;
const FVector & WorldPosition,
const FTransform & BodyToWorldTM
&41; const
Remarks
Finds the shortest distance between the element and a world position. Input and output are given in world space The distance between WorldPosition and the shape. 0 indicates WorldPosition is inside the shape.
Parameters
Name | Description |
---|---|
WorldPosition | The point we are trying to get close to |
BodyToWorldTM | The transform to convert BodySetup into world space |