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 queryPolygons
(
const float * center,
const float * extents,
const dtQueryFilter * filter,
dtPolyRef * polys,
int * polyCount,
const int maxPolys
) const
Finds polygons that overlap the search box.
If no polygons are found, the function will return #DT_SUCCESS with a `polyCount_ of zero.
If `polys_ is too small to hold the entire result set, then the array will be filled to capacity. The method of choosing which polygons from the full set are included in the partial result set is undefined.
The status flags for the query.
Parameter |
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. |
polys |
The reference ids of the polygons that overlap the query box. |
polyCount |
The number of polygons in the search result. |
maxPolys |
The maximum number of polygons the search result can hold. |