UPathFollowingComponent::HasReached

Simple test for stationary agent (used as early finish condition), check if reached given goal

Windows
MacOS
Linux

References

Module

AIModule

Header

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

Include

#include "Navigation/PathFollowingComponent.h"

Source

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

Syntax

bool HasReached
(
    const AActor & TestGoal,
    EPathFollowingReachMode ReachMode,
    float AcceptanceRadius,
    bool bUseNavAgentGoalLocation
) const

Remarks

Simple test for stationary agent (used as early finish condition), check if reached given goal

Parameters

Parameter

Description

TestGoal

actor to test

AcceptanceRadius

allowed 2D distance

ReachMode

modifiers for AcceptanceRadius

bUseNavAgentGoalLocation

true: if the goal is a nav agent, we will use their nav agent location rather than their actual location

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss