FMassMovementConfig

Choose your operating system:

Windows

macOS

Linux

References

Module

MassAIMovement

Header

/Engine/Plugins/AI/MassAI/Source/MassAIMovement/Public/MassAIMovementTypes.h

Include

#include "MassAIMovementTypes.h"

Syntax

USTRUCT()
struct FMassMovementConfig

Variables

Name Description

Public variable UProperty Category, EditAnywhere, Meta

float

 

DefaultDesiredSpeed

Default desired speed (cm/s).

Public variable UProperty Category, EditAnywhere, Meta

float

 

DefaultDesiredSpeedVariance

How much default desired speed is varied randomly.

Public variable UProperty Category, EditAnywhere, Meta

FGuid

 

ID

GUID representing this configuration.

Public variable UProperty Category, EditAnywhere

FZoneGraphTagFi...

 

LaneFilter

Filter describing which lanes can be used when spawned.

Public variable UProperty Category, EditAnywhere, Meta

float

 

MaximumSpeed

Maximum speed (cm/s).

Public variable UProperty Category, EditAnywhere

TArray< FMassMo...

 

MovementStyles

List of supported movement styles for this configuration.

Public variable UProperty Category, EditAnywhere

FName

 

Name

Name of the movement configuration.

Public variable UProperty Category, EditAnywhere, Meta

float

 

QueryRadius

Query radius when trying to find nearest lane when spawned.

Public variable UProperty Category, EditAnywhere

FMassMovementSt...

 

Steering

Steering config.

Functions

Name Description

Public function Const

float

 

GenerateDesiredSpeed

(
    const FMassMovementStyleRef& Style,
    const int32 UniqueId
)

Generates desired speed based on style and unique id.

Public function

void

 

Update()

Updates internal values for faster desired speed generation.