Navigation
Unreal Engine C++ API Reference > Runtime > NavigationSystem > AAbstractNavData
- ANavigationData::CalcPathCost()
- AAbstractNavData::CalcPathCost()
References
Module | NavigationSystem |
Header | /Engine/Source/Runtime/NavigationSystem/Public/AbstractNavData.h |
Include | #include "AbstractNavData.h" |
virtual ENavigationQueryResult::Type CalcPathCost
&40;
const FVector & PathStart,
const FVector & PathEnd,
FVector::FReal & OutPathCost,
FSharedConstNavQueryFilter QueryFilter,
const UObject &42; Querier
&41; 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