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