Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtNavMeshQuery
Warnings * Calling any non-slice methods before calling finalizeSlicedFindPath() or finalizeSlicedFindPathPartial() may result in corrupted data!
Description
Initializes a sliced path query.
Calling any non-slice methods before calling finalizeSlicedFindPath() or finalizeSlicedFindPathPartial() may result in corrupted data! The `filter_ pointer is stored and used for the duration of the sliced path query.
| Name | initSlicedFindPath |
| 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 initSlicedFindPath
(
dtPolyRef startRef,
dtPolyRef endRef,
const dtReal * startPos,
const dtReal * endPos,
const dtReal costLimit,
const bool requireNavigableEndLocation,
const dtQueryFilter * filter
)
The status flags for the query.
Parameters
| Name | Remarks |
|---|---|
| startRef | The refrence id of the start polygon. |
| endRef | The reference id of the end polygon. |
| startPos | A position within the start polygon. [(x, y, z)] |
| endPos | A position within the end polygon. [(x, y, z)] |
| costLimit | Cost limit of nodes allowed to be added to the open list //@UE |
| requireNavigableEndLocation | Define if the end location is required to be a valid navmesh polygon //@UE |
| filter | The polygon filter to apply to the query. |