Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h |
Include |
#include "Detour/DetourNavMeshQuery.h" |
float getCost
(
const float * pa,
const float * pb,
const dtPolyRef prevRef,
const dtMeshTile * prevTile,
const dtPoly * prevPoly,
const dtPolyRef curRef,
const dtMeshTile * curTile,
const dtPoly * curPoly,
const dtPolyRef nextRef,
const dtMeshTile * nextTile,
const dtPoly * nextPoly
) const
Returns cost to move from the beginning to the end of a line segment that is fully contained within a polygon.
Parameter |
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] |