Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/Navigation > API/Runtime/AIModule/Navigation/UPathFollowingComponent > API/Runtime/AIModule/Navigation/UPathFollowingComponent/HasReached
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 |
bool HasReached
&40;
const AActor & TestGoal,
EPathFollowingReachMode ReachMode,
float AcceptanceRadius,
bool bUseNavAgentGoalLocation
&41; const
Remarks
Simple test for stationary agent (used as early finish condition), check if reached given goal
Parameters
| Name | 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 |