FNavAvoidanceData

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/AI/Navigation/AvoidanceManager.h

Include

#include "AI/Navigation/AvoidanceManager.h"

Syntax

struct FNavAvoidanceData

Variables

Name Description

Public variable

FVector

 

Center

Current location

Public variable

int32

 

GroupMask

Group data

Public variable

int32

 

GroupsToAvoid

Avoid agents is they belong to one of specified groups

Public variable

int32

 

GroupsToIgnore

Do NOT avoid agents is they belong to one of specified groups, takes priority over GroupsToAvoid

Public variable

float

 

HalfHeight

Height (object is treated as a cylinder)

Public variable

float

 

OverrideWeightTime

Weight is treated as a hard 1.0 while this is active. This is set by code.

Public variable

float

 

Radius

Radius (object is treated as a cylinder)

Public variable

float

 

RemainingTimeToLive

RVO data is automatically cleared if it's not overwritten first.

Public variable

float

 

TestRadius2D

Radius of the area to consider for avoidance

Public variable

FVector

 

Velocity

Current velocity

Public variable

float

 

Weight

Weight for RVO (set by user)

Constructors

Name Description

Public function

FNavAvoidanceData()

Public function

FNavAvoidanceData

(
    UAvoidanceManager* Manager,
    IRVOAvoidanceInterface* Avoida...
)

Functions

Name Description

Public function

void

 

Init

(
    UAvoidanceManager* Avoidance,
    const FVector& InCenter,
    float InRadius,
    float InHalfHeight,
    const FVector& InVelocity,
    float InWeight,
    int32 InGroupMask,
    int32 InGroupsToAvoid,
    int32 InGroupsToIgnore,
    float InTestRadius2D
)

Init function for internal use to guard against data changes not being reflected in blueprint-accessible creation functions

Public function Const

bool

 

ShouldBeIgnored()

Public function Const

bool

 

ShouldIgnoreGroup

(
    int32 OtherGroupMask
)