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 findPolysInPathDistance
&40;
dtPolyRef startRef,
const dtReal &42; centerPos,
const dtReal pathDistance,
const dtQueryFilter &42; filter,
dtPolyRef &42; resultRef,
int &42; resultCount,
const int maxResult
&41; const
Remarks
Finds the polygons along the navigation graph that are no more than given path length away from centerPos. The status flags for the querydtReal
Parameters
Name | Description |
---|---|
startRef | The reference id of the polygon where the search starts. |
centerPos | The center of the search circle. [(x, y, z)] |
pathDistance | The path distance limit of the search |
filter | The polygon filter to apply to the query. |
resultRef | The reference ids of the polygons touched by the circle. [opt] |
resultCount | The number of polygons found. [opt] |
maxResult | The maximum number of polygons the result arrays can hold. |