Navigation
API > API/Plugins > API/Plugins/Mover
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/LayeredMove.h |
| Include | #include "LayeredMove.h" |
Syntax
USTRUCT (BlueprintType )
struct FLayeredMoveGroup
Remarks
A collection of layered moves affecting a movable actor.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedPtr< FLayeredMoveBase > > | ActiveLayeredMoves | Layered moves currently active in this group | |
| bool | bApplyResidualVelocity | If true ResidualVelocity will be the next velocity used for this actor Note: This is set automatically when a layered move has ended based off of end velocity settings - it is not meant to be set by the user see @FLayeredMoveFinishVelocitySettings | |
| TArray< TSharedPtr< FLayeredMoveBase > > | QueuedLayeredMoves | Moves that are queued to become active next sim frame | |
| float | ResidualClamping | Clamps an actors velocity to this value when a layered move ends. | |
| FVector | ResidualVelocity | If bApplyResidualVelocity is true this actors velocity will be set to this. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddStructReferencedObjects
(
FReferenceCollector& Collector |
Exposes references to GC system | |
| void | FlushMoveArrays
(
const UMoverComponent* MoverComp, |
Clears out any finished or invalid active moves and adds any queued moves to the active moves. | |
| void | GatherResidualVelocitySettings
(
const TSharedPtr< FLayeredMoveBase >& Move, |
Helper function for gathering any residual velocity settings from layered moves that just ended. | |
| TArray< TSharedPtr< FLayeredMoveBase > > | GenerateActiveMoves
(
const FMoverTimeStep& TimeStep, |
Generates active layered move list (by calling FlushMoveArrays) and returns the an array of all currently active layered moves. | |
| TArray< TSharedPtr< FLayeredMoveBase > >::TConstIterator | Const access to active moves | ||
| TArray< TSharedPtr< FLayeredMoveBase > >::TConstIterator | Const access to queued moves | ||
| bool | HasAnyMoves () |
||
| void | NetSerialize
(
FArchive& Ar, |
Serialize all moves and their states for this group | |
| void | NetSerializeLayeredMovesArray
(
FArchive& Ar, |
Helper function for serializing array of root motion sources | |
| void | QueueLayeredMove
(
TSharedPtr< FLayeredMoveBase > Move |
||
| void | Resets residual velocity related settings. | ||
| FString | Get a simplified string representation of this group. Typically for debugging. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FLayeredMoveGroup& Other |
Comparison operator | |
| FLayeredMoveGroup & | operator=
(
const FLayeredMoveGroup& Other |
Copy operator - deep copy so it can be used for archiving/saving off moves | |
| bool | operator==
(
const FLayeredMoveGroup& Other |
Comparison operator - needs matching LayeredMoves along with identical states in those structs |