FNavigationPath::GetLengthFromPosition

Calculates total length of segments from NextPathPoint to the end of path, plus distance from CurrentPosition to NextPathPoint

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FNavigationPath::GetLengthFromPosition()

FMetaNavMeshPath::GetLengthFromPosition()

References

Module

NavigationSystem

Header

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

Include

#include "NavigationData.h"

Source

/Engine/Source/Runtime/NavigationSystem/Private/NavigationPath.cpp

Syntax

virtual float GetLengthFromPosition
(
    FVector SegmentStart,
    uint32 NextPathPointIndex
) const

Remarks

Calculates total length of segments from NextPathPoint to the end of path, plus distance from CurrentPosition to NextPathPoint