Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtNavMeshQuery
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 getPolyWallSegments
&40;
dtPolyRef ref,
const dtQueryFilter &42; filter,
dtReal &42; segmentVerts,
dtPolyRef &42; segmentRefs,
int &42; segmentCount,
const int maxSegments
&41; const
Remarks
Returns the segments for the specified polygon, optionally including portals.
If the `segmentRefs_ parameter is provided, then all polygon segments will be returned. Otherwise only the wall segments are returned.
A segment that is normally a portal will be included in the result set as a wall if the `filter_ results in the neighbor polygon becoomming impassable.
The segmentVerts_ and
segmentRefs_ buffers should normally be sized for the maximum segments per polygon of the source navigation mesh.
The status flags for the query.
Parameters
Name | Description |
---|---|
ref | The reference id of the polygon. |
filter | The polygon filter to apply to the query. |
segmentVerts | The segments. [(ax, ay, az, bx, by, bz) * segmentCount] |
segmentRefs | The reference ids of each segment's neighbor polygon. Or zero if the segment is a wall. [opt] [(parentRef) * segmentCount] |
segmentCount | The number of segments returned. |
maxSegments | The maximum number of segments the result arrays can hold. |