Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtNavMeshQuery
Description
Initializes the query object.
Must be the first function called after construction, before other functions are used.
This function can be used multiple times.
| Name | init |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
| Include Path | #include "Detour/DetourNavMeshQuery.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMeshQuery.cpp |
dtStatus init
(
const dtNavMesh * nav,
const int maxNodes,
dtQuerySpecialLinkFilter * linkFilter
)
The status flags for the query.
Parameters
| Name | Remarks |
|---|---|
| nav | Pointer to the dtNavMesh object to use for all queries. |
| maxNodes | Maximum number of search nodes. [Limits: 0 < value <= 65536] |
| linkFilter | Special link filter used for every query |