dtQueryFilter::getCost

Returns cost to move from the beginning to the end of a line segment that is fully contained within a polygon.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h

Include

#include "Detour/DetourNavMeshQuery.h"

Syntax

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

Remarks

Returns cost to move from the beginning to the end of a line segment that is fully contained within a polygon.

Parameters

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]

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss