Navigation
API > API/Plugins > API/Plugins/MassMovement
Inheritance Hierarchy
- FMassConstSharedFragment
- FMassMovementParameters
References
| Module | MassMovement |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassMovement/Public/MassMovementFragments.h |
| Include | #include "MassMovementFragments.h" |
Syntax
USTRUCT ()
struct FMassMovementParameters : public FMassConstSharedFragment
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | DefaultDesiredSpeed | Default desired speed (cm/s). | |
| float | DefaultDesiredSpeedVariance | How much default desired speed is varied randomly. | |
| float | HeightSmoothingTime | The time it takes the entity position to catchup to the requested height. | |
| float | MaxAcceleration | 200..600 Smaller steering maximum acceleration makes the steering more "calm" but less opportunistic, may not find solution, or gets stuck. | |
| float | MaxSpeed | Maximum speed (cm/s). | |
| TArray< FMassMovementStyleParameters > | MovementStyles | List of supported movement styles for this configuration. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GenerateDesiredSpeed
(
const FMassMovementStyleRef& Style, |
Generates desired speed based on style and unique id. | |
| FMassMovementParameters | GetValidated () |
||
| void | Update () |
Updates internal values for faster desired speed generation. |