Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtNavMeshQuery
Warnings * Calling any non-slice methods before calling finalizeSlicedFindPath() or finalizeSlicedFindPathPartial() may result in corrupted data!
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 initSlicedFindPath
&40;
dtPolyRef startRef,
dtPolyRef endRef,
const dtReal &42; startPos,
const dtReal &42; endPos,
const dtReal costLimit,
const bool requireNavigableEndLocation,
const dtQueryFilter &42; filter
&41;
Remarks
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. The status flags for the query.
Parameters
Name | Description |
---|---|
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 // |
requireNavigableEndLocation | Define if the end location is required to be a valid navmesh polygon // |
filter | The polygon filter to apply to the query. |