Navigation
API > API/Runtime > API/Runtime/AIModule
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/AITypes.h |
| Include | #include "AITypes.h" |
Syntax
struct FAIMoveRequest
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AcceptanceRadius | Pathfollowing: required distance to goal to complete move | |
| uint32: 1 | bAllowPartialPath | Pathfinding: allow using incomplete path going toward goal but not reaching it | |
| uint32: 1 | bApplyCostLimitFromHeuristic | Pathfinding: if set - the pathfind query cost will be limited based on the heuristic between the start and end location (c.f. CostLimitFactor and MinimumCostLimit). | |
| uint32: 1 | bCanStrafe | Pathfollowing: keep focal point at move goal | |
| uint32: 1 | bInitialized | Move goal is an actor | |
| uint32: 1 | bMoveToActor | Move goal is an actor | |
| uint32: 1 | bProjectGoalOnNavigation | Pathfinding: goal location will be projected on navigation data before use | |
| uint32: 1 | bReachTestIncludesAgentRadius | Pathfollowing: acceptance radius needs to be increased by agent radius (stop on overlap vs exact point) | |
| uint32: 1 | bReachTestIncludesGoalRadius | Pathfollowing: acceptance radius needs to be increased by goal actor radius | |
| uint32: 1 | bRequireNavigableEndLocation | Pathfinding: if set - require the end location to be linked to the navigation data | |
| uint32: 1 | bUsePathfinding | Pathfinding: if set - regular pathfinding will be used, if not - direct path between two points | |
| float | CostLimitFactor | Pathfinding: this multiplier is used to compute a max node cost allowed to the open list (cost limit = CostLimitFactor*InitialHeuristicEstimate) | |
| TSubclassOf< UNavigationQueryFilter > | FilterClass | Pathfinding: navigation filter to use | |
| TWeakObjectPtr< AActor > | GoalActor | Move goal: actor | |
| FVector | GoalLocation | Move goal: location | |
| float | MinimumCostLimit | Pathfinding: minimum cost limit clamping value (in cost units) used to allow large deviation in short paths | |
| FCustomMoveSharedPtr | UserData | Custom user data: structure | |
| int32 | UserFlags | Custom user data: flags |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAIMoveRequest
(
const AActor* InGoalActor |
|||
FAIMoveRequest
(
const FVector& InGoalLocation |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanStrafe () |
||
| float | |||
| float | |||
| FVector | Retrieves request's requested destination location, GoalActor's location or GoalLocation, depending on the request itself | ||
| AActor * | GetGoalActor () |
||
| FVector | |||
| float | |||
| TSubclassOf< UNavigationQueryFilter > | |||
| const FCustomMoveSharedPtr & | GetUserData () |
||
| int32 | GetUserFlags () |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | IsValid () |
The request should be either set up to move to a location, of go to a valid actor | |
| FAIMoveRequest & | SetAcceptanceRadius
(
float Radius |
||
| FAIMoveRequest & | SetAllowPartialPath
(
bool bAllowPartial |
||
| FAIMoveRequest & | SetApplyCostLimitFromHeuristic
(
bool bApply, |
Defines if the underlying pathfind query should limit its exploration based on the navigation cost | |
| FAIMoveRequest & | SetCanStrafe
(
bool bStrafe |
||
| void | SetGoalActor
(
const AActor* InGoalActor |
||
| void | SetGoalLocation
(
const FVector& InGoalLocation |
||
| FAIMoveRequest & | SetNavigationFilter
(
TSubclassOf< UNavigationQueryFilter > Filter |
||
| FAIMoveRequest & | SetProjectGoalLocation
(
bool bProject |
||
| FAIMoveRequest & | SetReachTestIncludesAgentRadius
(
bool bIncludeRadius |
||
| FAIMoveRequest & | SetReachTestIncludesGoalRadius
(
bool bIncludeRadius |
||
| FAIMoveRequest & | SetRequireNavigableEndLocation
(
bool bRequire |
||
| FAIMoveRequest & | SetUsePathfinding
(
bool bPathfinding |
||
| FAIMoveRequest & | SetUserData
(
const FCustomMoveSharedPtr& InUserData |
||
| FAIMoveRequest & | SetUserFlags
(
int32 InUserFlags |
||
| FString | ToString () |
||
| bool | UpdateGoalLocation
(
const FVector& NewLocation |