UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NavAgentInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "UObject/Interface.h"
7#include "NavAgentInterface.generated.h"
8
9class AActor;
12
13UINTERFACE(MinimalAPI, meta=(CannotImplementInterfaceInBlueprint))
18
20{
22
23
28 ENGINE_API virtual const FNavAgentProperties& GetNavAgentPropertiesRef() const;
29
33 virtual FVector GetNavAgentLocation() const PURE_VIRTUAL(INavAgentInterface::GetNavAgentLocation, return FVector::ZeroVector;);
34
36 virtual FVector GetMoveGoalOffset(const AActor* MovingActor) const { return FVector::ZeroVector; }
37
44 virtual void GetMoveGoalReachTest(const AActor* MovingActor, const FVector& MoveOffset, FVector& GoalOffset, float& GoalRadius, float& GoalHalfHeight) const { }
45
47 virtual bool ShouldPostponePathUpdates() const { return false; }
48
50 virtual bool IsFollowingAPath() const { return false; }
51
53 virtual IPathFollowingAgentInterface* GetPathFollowingAgent() const { return nullptr; }
54
55 //----------------------------------------------------------------------//
56 // DEPRECATED
57 //----------------------------------------------------------------------//
58 UE_DEPRECATED_FORGAME(4.13, "This function is now deprecated and will not be called, please use override with const Actor pointer.")
59 virtual FVector GetMoveGoalOffset(AActor* MovingActor) const
60 {
61 return GetMoveGoalOffset((const AActor*)MovingActor);
62 }
63
64 UE_DEPRECATED_FORGAME(4.13, "This function is now deprecatedand will not be called, please use override with const Actor pointer.")
65 virtual void GetMoveGoalReachTest(AActor* MovingActor, const FVector& MoveOffset, FVector& GoalOffset, float& GoalRadius, float& GoalHalfHeight) const
66 {
67 GetMoveGoalReachTest((const AActor*)MovingActor, MoveOffset, GoalOffset, GoalRadius, GoalHalfHeight);
68 }
69};
70
#define UE_DEPRECATED_FORGAME
Definition CoreMiscDefines.h:377
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define GENERATED_IINTERFACE_BODY(...)
Definition ObjectMacros.h:770
#define GENERATED_UINTERFACE_BODY(...)
Definition ObjectMacros.h:769
Definition Actor.h:257
Definition NavAgentInterface.h:20
Definition PathFollowingAgentInterface.h:21
Definition Interface.h:19
Definition NavAgentInterface.h:15
Definition NavigationTypes.h:453
static CORE_API const TVector< double > ZeroVector
Definition Vector.h:79