Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtNavMesh
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMesh.h |
Include | #include "Detour/DetourNavMesh.h" |
Source | /Engine/Source/Runtime/Navmesh/Private/Detour/DetourNavMesh.cpp |
dtStatus getOffMeshConnectionPolyEndPoints
&40;
dtPolyRef prevRef,
dtPolyRef polyRef,
const dtReal &42; currentPos,
dtReal &42; startPos,
dtReal &42; endPos
&41; const
Remarks
Gets the endpoints for an off-mesh connection, ordered by "direction of travel".
Off-mesh connections are stored in the navigation mesh as special 2-vertex polygons with a single edge. At least one of the vertices is expected to be inside a normal polygon. So an off-mesh connection is "entered" from a normal polygon at one of its endpoints. This is the polygon identified by the prevRef parameter. The status flags for the operation.
Parameters
Name | Description |
---|---|
prevRef | The reference of the polygon before the connection. |
polyRef | The reference of the off-mesh connection polygon. |
currentPos | Position before entering off-mesh connection [(x, y, z)] |
startPos | The start position of the off-mesh connection. [(x, y, z)] |
endPos | The end position of the off-mesh connection. [(x, y, z)] |