Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/ANavigationData
- ANavigationData::CalcPathCost()
- AAbstractNavData::CalcPathCost()
- ARecastNavMesh::CalcPathCost()
References
| Module | NavigationSystem |
| Header | /Engine/Source/Runtime/NavigationSystem/Public/NavigationData.h |
| Include | #include "NavigationData.h" |
virtual ENavigationQueryResult::Type CalcPathCost
(
const FVector & PathStart,
const FVector & PathEnd,
FVector::FReal & OutPathCost,
FSharedConstNavQueryFilter QueryFilter,
const UObject * Querier
) const
Remarks
Calculates path from PathStart to PathEnd and retrieves its cost. @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