Navigation
Unreal Engine C++ API Reference > Runtime > NavigationSystem > AAbstractNavData
- ANavigationData::CalcPathLengthAndCost()
- AAbstractNavData::CalcPathLengthAndCost()
References
Module | NavigationSystem |
Header | /Engine/Source/Runtime/NavigationSystem/Public/AbstractNavData.h |
Include | #include "AbstractNavData.h" |
virtual ENavigationQueryResult::Type CalcPathLengthAndCost
&40;
const FVector & PathStart,
const FVector & PathEnd,
FVector::FReal & OutPathLength,
FVector::FReal & OutPathCost,
FSharedConstNavQueryFilter QueryFilter,
const UObject &42; Querier
&41; const
Remarks
Calculates path from PathStart to PathEnd and retrieves its length. this function does not generate string pulled path so the result is an (over-estimated) approximation potentially expensive, so use it with caution