FNavLocalGridData::FindPathForMovingAgent

Creates path points from navigation path going through grid

Choose your operating system:

Windows

macOS

Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/Navigation/NavLocalGridData.h

Include

#include "Navigation/NavLocalGridData.h"

Source

/Engine/Source/Runtime/AIModule/Private/Navigation/NavLocalGridData.cpp

Syntax

void FindPathForMovingAgent
(
    const FNavigationPath & SourcePath,
    const FVector & EntryLocation,
    int32 EntrySegmentStart,
    TArray< FVector > & PathPointsInside,
    int32 & NextSegmentStart
) const

Remarks

Creates path points from navigation path going through grid

Parameters

Parameter

Description

SourcePath

[in] full navigation path

EntryLocation

[in] location of agent

EntrySegmentStart

[in] current move segment on path

PathPointsInside

[out] points inside grid

NextSegmentStart

[out] next move segment on path after leaving grid or -1 if path ends inside