AAbstractNavData::CalcPathCost

Calculates path from PathStart to PathEnd and retrieves its cost.

Windows
MacOS
Linux

Override Hierarchy

ANavigationData::CalcPathCost()

AAbstractNavData::CalcPathCost()

References

Module

NavigationSystem

Header

/Engine/Source/Runtime/NavigationSystem/Public/AbstractNavData.h

Include

#include "AbstractNavData.h"

Syntax

virtual ENavigationQueryResult::Type CalcPathCost
(
    const FVector & PathStart,
    const FVector & PathEnd,
    float & OutPathCost,
    FSharedConstNavQueryFilter QueryFilter,
    const UObject * Querier
) const

Remarks

Calculates path from PathStart to PathEnd and retrieves its cost. this function does not generate string pulled path so the result is an (over-estimated) approximation potentially expensive, so use it with caution

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