Skip to content

Sein Movement Data

Struct · FSeinMovementPayload : FSeinPayload

Parent: Sein Component Data

#include "Components/SeinMovementPayload.h"

deterministic: safe in simulation code

Sein Movement Data: makes a unit able to move. It names the unit’s movement mode (Movement Class) and sets its speed and turn rate. It also holds the live state of the current move, such as the destination, velocity and slope tilt, which animation and UI code can read.

FSoftClassPath MovementClass

Editable in defaults and on instances · Blueprint read and write

The movement mode that drives this unit. Empty uses Basic Movement. A soft path, so a unit can name a mode from a game module this module does not depend on.

FFixedPoint Speed · default FFixedPoint::FromInt(500) · min 0.0

Editable in defaults and on instances · Blueprint read and write

Travel speed in centimetres per second, before terrain and avoidance. Modes with an acceleration ramp treat it as their top speed. Attributes and effects modify it directly.

FFixedPoint TurnRate · default FFixedPoint::FromInt(5) · min 0.0

Editable in defaults and on instances · Blueprint read and write

Maximum facing change in radians per second.

FInstancedStruct ModeData

Editable in defaults and on instances · Blueprint read and write

The movement mode’s own tuning, copied onto the mode’s same-named properties. Its type follows Movement Class: the mode’s Get Mode Data Struct names it, and a Blueprint mode’s generated tuning struct fills it. Empty for Basic Movement.

FFixedVector TargetLocation · default FFixedVector::ZeroVector

Blueprint read and write

The current move’s destination. Read it only while Has Target is true; afterwards it is the last ordered goal.

bool bHasTarget · default false

Blueprint read and write

True while a move is in progress.

FFixedVector Velocity · default FFixedVector::ZeroVector

Blueprint read and write

Planar velocity the mode drove this tick, in cm/s. It carries across orders, so a new order issued in motion keeps the unit’s momentum. Facing is separate, on the transform.

bool bArrivalImminent · default false

Blueprint read and write

True on the final leg within acceptance plus footprint of the destination, so animation can blend into an arrival.

bool bOnFinalLeg · default false

Blueprint read and write

True while the unit heads for its route’s final waypoint.

FFixedPoint SmoothedPitch · default FFixedPoint::Zero

Blueprint read and write

Pitch toward the ground slope in radians, positive nose up, rate-limited so terrain orientation stays continuous across ticks and orders.

FFixedPoint SmoothedRoll · default FFixedPoint::Zero

Blueprint read and write

Roll toward the ground slope in radians, positive right side down; see Smoothed Pitch.

bool bInitialGroundSnapDone · default false

Blueprint read and write

True once the unit’s first idle tick has snapped it to the ground and slope.

FFixedVector FacePoint · default FFixedVector::ZeroVector

Blueprint read and write

The point the unit turns toward while it has no move, ahead of its formation slot’s facing. Face Point sets it and starting a move clears it. Read it only while Has Face Point is true.

bool bHasFacePoint · default false

Blueprint read and write

True while Face Point decides the unit’s idle facing.

int32 AvoidanceWeight · default 0

Editable in defaults and on instances · Blueprint read and write

Right of way, for avoidance classes that weigh it: higher values receive precedence when paths conflict. Basic Avoidance does not use it.

FFixedVector ActualVelocity · default FFixedVector::ZeroVector

Blueprint read-only

Displacement over the committed tick, including contacts, in cm/s.

C++ members (2)
  • void SetRenderValue(FGameplayTag Key, FFixedPoint Value);
  • const FFixedPoint* FindRenderValue(FGameplayTag Key) const;