FMassMovementStyleSpeed

Movement style consists of multiple speeds which are assigned to agents based on agents unique ID.

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 FMassMovementStyleSpeed

Remarks

Movement style consists of multiple speeds which are assigned to agents based on agents unique ID. Same speed is assigned consistently for the same ID.

Variables

Name Description

Public variable UProperty Category, EditAnywhere, Meta

int32

 

Probability

Probability to assign this speed.

Public variable

int32

 

ProbabilityThreshold

Running sum of the probabilities so far, used to faster lookup.

Public variable UProperty Category, EditAnywhere, Meta

float

 

Speed

Desired speed

Public variable UProperty Category, EditAnywhere, Meta

float

 

Variance

How much default desired speed is varied randomly.