Navigation
API > API/Plugins > API/Plugins/MassMovement > API/Plugins/MassMovement/Example
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMassEntityTraitBase
- UMassVelocityRandomizerTrait
References
| Module | MassMovement |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassMovement/Public/Example/MassVelocityRandomizerTrait.h |
| Include | #include "Example/MassVelocityRandomizerTrait.h" |
Syntax
UCLASS&40;Meta&61;&40;DisplayName&61;"Velocity Randomizer"&41;&41;
class UMassVelocityRandomizerTrait : public UMassEntityTraitBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSetZComponent | ||
| float | MaxSpeed | The speed is expressed in UnrealUnits per second, which usually translates to 0.01m/s | |
| float | MinSpeed | The speed is expressed in UnrealUnits per second, which usually translates to 0.01m/s |
Overridden from UMassEntityTraitBase
| Type | Name | Description | |
|---|---|---|---|
| void | BuildTemplate
(
FMassEntityTemplateBuildContext& BuildContext, |
Appends items into the entity template required for the trait. |