FAIMoveRequest

Windows
MacOS
Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/AITypes.h

Include

#include "AITypes.h"

Syntax

struct FAIMoveRequest

Variables

Name Description

Protected variable

float

 

AcceptanceRadius

Pathfollowing: required distance to goal to complete move

Protected variable

uint32: 1

 

bAllowPartialPath

Pathfinding: allow using incomplete path going toward goal but not reaching it

Protected variable

uint32: 1

 

bCanStrafe

Pathfollowing: keep focal point at move goal

Protected variable

uint32: 1

 

bInitialized

Move goal is an actor

Protected variable

uint32: 1

 

bMoveToActor

Move goal is an actor

Protected variable

uint32: 1

 

bProjectGoalOnNavigation

Pathfinding: goal location will be projected on navigation data before use

Protected variable

uint32: 1

 

bReachTestIncludesAgentRadius

Pathfollowing: acceptance radius needs to be increased by agent radius (stop on overlap vs exact point)

Protected variable

uint32: 1

 

bReachTestIncludesGoalRadius

Pathfollowing: acceptance radius needs to be increased by goal actor radius

Protected variable

uint32: 1

 

bUsePathfinding

Pathfinding: if set - regular pathfinding will be used, if not - direct path between two points

Protected variable

TSubclassOf< UN...

 

FilterClass

Pathfinding: navigation filter to use

Protected variable

AActor *

 

GoalActor

Move goal: actor

Protected variable

FVector

 

GoalLocation

Move goal: location

Protected variable

FCustomMoveShar...

 

UserData

Custom user data: structure

Protected variable

int32

 

UserFlags

Custom user data: flags

Constructors

Name Description

Public function

FAIMoveRequest()

Public function

FAIMoveRequest

(
    const AActor* InGoalActor
)

Public function

FAIMoveRequest

(
    const FVector& InGoalLocation
)

Functions

Name Description

Public function Const

bool

 

CanStrafe()

Public function Const

float

 

GetAcceptanceRadius()

Public function Const

FVector

 

GetDestination()

Retrieves request's requested destination location, GoalActor's location or GoalLocation, depending on the request itself

Public function Const

AActor *

 

GetGoalActor()

Public function Const

FVector

 

GetGoalLocation()

Public function Const

TSubclassOf<...

 

GetNavigationFilter()

Public function Const

const FCusto...

 

GetUserData()

Public function Const

int32

 

GetUserFlags()

Public function Const

bool

 

IsMoveToActorRequest()

Public function Const

bool

 

IsProjectingGoal()

Public function Const

bool

 

IsReachTestIncludingAgentRadius()

Public function Const

bool

 

IsReachTestIncludingGoalRadius()

Public function Const

bool

 

IsUsingPartialPaths()

Public function Const

bool

 

IsUsingPathfinding()

Public function Const

bool

 

IsValid()

The request should be either set up to move to a location, of go to a valid actor

Public function

FAIMoveReque...

 

SetAcceptanceRadius

(
    float Radius
)

Public function

FAIMoveReque...

 

SetAllowPartialPath

(
    bool bAllowPartial
)

Public function

FAIMoveReque...

 

SetCanStrafe

(
    bool bStrafe
)

Public function

void

 

SetGoalActor

(
    const AActor* InGoalActor
)

Public function

void

 

SetGoalLocation

(
    const FVector& InGoalLocation
)

Public function

FAIMoveReque...

 

SetNavigationFilter

Public function

FAIMoveReque...

 

SetProjectGoalLocation

(
    bool bProject
)

Public function

FAIMoveReque...

 

SetReachTestIncludesAgentRadius

(
    bool bIncludeRadius
)

Public function

FAIMoveReque...

 

SetReachTestIncludesGoalRadius

(
    bool bIncludeRadius
)

Public function

FAIMoveReque...

 

SetUsePathfinding

(
    bool bPathfinding
)

Public function

FAIMoveReque...

 

SetUserData

(
    const FCustomMoveSharedPtr& InUser...
)

Public function

FAIMoveReque...

 

SetUserFlags

(
    int32 InUserFlags
)

Public function Const

FString

 

ToString()

Public function Const

bool

 

UpdateGoalLocation

(
    const FVector& NewLocation
)

Deprecated Functions

Name Description

Public function Const

bool

 

CanStopOnOverlap()

This function is deprecated, please use IsReachTestIncludingAgentRadius instead.

Public function

FAIMoveReque...

 

SetStopOnOverlap

(
    bool bStop
)

This function is deprecated, please use SetReachTestIncludesAgentRadius instead.

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