Module |
|
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
(
dtPolyRef startRef,
const float * centerPos,
const float pathDistance,
const dtQueryFilter * filter,
dtPolyRef * resultRef,
int * resultCount,
const int maxResult
) const
Finds the polygons along the navigation graph that are no more than given path length away from centerPos.
The status flags for the query.
Parameter |
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. |