Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtNavMeshQuery
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
Include | #include "Detour/DetourNavMeshQuery.h" |
Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshQuery.cpp |
dtStatus findNearestPoly2D
&40;
const dtReal &42; center,
const dtReal &42; extents,
const dtQueryFilter &42; filter,
dtPolyRef &42; outProjectedRef,
dtReal &42; outProjectedPt,
const dtReal &42; referencePt,
dtReal tolerance
&41; const
Remarks
Finds the polygon 2D-nearest to the specified center point. The status flags for the query.
Parameters
Name | Description |
---|---|
center | The center of the search box. [(x, y, z)] |
extents | The search distance along each axis. [(x, y, z)] |
filter | The polygon filter to apply to the query. |
nearestRef | The reference id of the nearest polygon. |
nearestPt | The nearest point on the polygon. [opt] [(x, y, z)] |
referencePt | If supplied replaces |
center | in terms of distance measurements. [opt] [(x, y, z)] |
tolerance | Radius around best 2D point for picking vertical match |