Module |
|
Header |
/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
Include |
#include "NavigationSystem.h" |
Source |
/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
static UNavigationPath * FindPathToActorSynchronously
(
UObject * WorldContextObject,
const FVector & PathStart,
AActor * GoalActor,
float TetherDistance,
AActor * PathfindingContext,
TSubclassOf< UNavigationQueryFilter > FilterClass
)
Finds path instantly, in a FindPath Synchronously. Main advantage over FindPathToLocationSynchronously is that the resulting path will automatically get updated if goal actor moves more than TetherDistance away from last path node
Parameter |
Description |
---|---|
PathfindingContext |
could be one of following: NavigationData (like Navmesh actor), Pawn or Controller. This parameter determines parameters of specific pathfinding query |