Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/SpatialAlgo > API/Plugins/PCG/SpatialAlgo/UPCGOctreeQueries > API/Plugins/PCG/SpatialAlgo/UPCGOctreeQueries/GetClosestPoint
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/SpatialAlgo/PCGOctreeQueries.h |
| Include | #include "SpatialAlgo/PCGOctreeQueries.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/SpatialAlgo/PCGOctreeQueries.cpp |
UFUNCTION (BlueprintCallable, Category=PointData)
static void GetClosestPoint
(
const UPCGPointData * InPointData,
const FVector & InCenter,
const bool bInDiscardCenter,
bool & bOutFound,
FPCGPoint & OutPoint,
const double InSearchDistance
)
Remarks
Get the closest point to a given position within the search distance. If bInDiscardCenter is true, will reject any points that is at the center exactly.