Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/PhysicsEngine > API/Runtime/Engine/PhysicsEngine/UBodySetup
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h |
| Include | #include "PhysicsEngine/BodySetup.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp |
float GetShortestDistanceToPoint
&40;
const FVector & WorldPosition,
const FTransform & BodyToWorldTM,
bool bUseConvexShapes
&41; const
Remarks
Finds the shortest distance between the body setup and a world position. Input and output are given in world space NOTE: This function ignores trimesh data The distance between WorldPosition and the body setup. 0 indicates WorldPosition is inside one of the shapes.
Parameters
| Name | Description |
|---|---|
| WorldPosition | The point we are trying to get close to |
| BodyToWorldTM | The transform to convert BodySetup into world space |
| bUseConvexShapes | When true also check the convex shapes if any (false by default) |