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 |
static const FPCGPoint * GetClosestPoint
(
const UPCGPointData * InPointData,
const FVector & InCenter,
const bool bInDiscardCenter,
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 are exactly at the center. Returns null if not found.