Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > Detour > dtQueryFilter
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
Include | #include "Detour/DetourNavMeshQuery.h" |
dtReal getCost
&40;
const dtReal &42; pa,
const dtReal &42; pb,
const dtPolyRef prevRef,
const dtMeshTile &42; prevTile,
const dtPoly &42; prevPoly,
const dtPolyRef curRef,
const dtMeshTile &42; curTile,
const dtPoly &42; curPoly,
const dtPolyRef nextRef,
const dtMeshTile &42; nextTile,
const dtPoly &42; nextPoly
&41; const
Remarks
Returns cost to move from the beginning to the end of a line segment that is fully contained within a polygon.
Parameters
Name | Description |
---|---|
pa | The start position on the edge of the previous and current polygon. [(x, y, z)] |
pb | The end position on the edge of the current and next polygon. [(x, y, z)] |
prevRef | The reference id of the previous polygon. [opt] |
prevTile | The tile containing the previous polygon. [opt] |
prevPoly | The previous polygon. [opt] |
curRef | The reference id of the current polygon. |
curTile | The tile containing the current polygon. |
curPoly | The current polygon. |
nextRef | The reference id of the next polygon. [opt] |
nextTile | The tile containing the next polygon. [opt] |
nextPoly | The next polygon. [opt] |