UMassRandomVelocityInitializer

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassMovement

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassMovement/Public/MassVelocityRandomizerTrait.h

Include

#include "MassVelocityRandomizerTrait.h"

Syntax

UCLASS()
class UMassRandomVelocityInitializer : public UMassFragmentInitializer

Variables

Name Description

Protected variable UProperty

bool

 

bSetZComponent

Protected variable

FMassEntityQuer...

 

EntityQuery

Protected variable UProperty

float

 

MaxSpeed

The default max is set to 0 to enforce explicit configuration via SetParameters call.

Protected variable UProperty

float

 

MinSpeed

Constructors

Functions

Name Description

Protected function Virtual

void

 

ConfigureQueries()

Protected function Virtual

void

 

Execute

(
    UMassEntitySubsystem& EntitySubsys...,
    FMassExecutionContext& Context
)

Public function

void

 

SetParameters

(
    const float InMinSpeed,
    const float InMaxSpeed,
    const bool bInSetZComponent
)