Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FConvexVolume
Description
Calculates the maximum perpendicular distance of a point to the plains of the convex volume. The distance can be used to see if the sphere is touching the volume
| Name | DistanceTo |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/ConvexVolume.h |
| Include Path | #include "ConvexVolume.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ConvexVolume.cpp |
float DistanceTo
(
const FVector & Point
) const
Returns the maximum perpendicular distance to then plains (the distance is conservative at the corners)
Parameters
| Name | Remarks |
|---|---|
| Point | to calculate the distance to. |