Skip to content

Sein Movement State Data

Struct · FSeinMovementStateData

#include "Lib/SeinMovementBPFL.h"

Derived movement state — read-only runtime snapshot composed from an entity’s transform and Movement Data (+ optional polymorphic sub-data for altitude). Mirrors the field shape of UCharacterMovementComponent so AnimBPs / UI / gameplay code authored against the mannequin template port over with minimal rewiring.

Stateless by design: no per-frame deltas (acceleration, yaw rate). If you need those, compute them in the calling graph from per-tick Velocity / rotation deltas with whatever cache strategy fits the caller (BP variable, ViewModel, etc.). Keeping this struct stateless means a single sim entity can be queried by N consumers per frame without coordination.

FVector Velocity · default FVector::ZeroVector

Blueprint read-only

Planar velocity (XY) in cm/s. Z is always 0.

float Speed · default 0.0f

Blueprint read-only

Signed forward speed (units/s). Negative when reversing.

float GroundSpeed · default 0.0f

Blueprint read-only

Planar (XY) speed magnitude. Non-negative; equivalent to Vector Length XY(Velocity) from the mannequin AnimBP template.

float Direction · default 0.0f

Blueprint read-only

Signed angle from the entity’s facing to its velocity, in degrees, in [-180, 180]. Drives the strafe blendspace. For non-strafing movement: 0 forward, ±180 reverse. Returns 0 when stationary.

bool bIsMoving · default false

Blueprint read-only

True when the unit’s planar speed (Ground Speed) is above about 1 cm/s. Drives idle to locomotion transitions in an Animation Blueprint.

bool bIsReversing · default false

Blueprint read-only

True when Speed is negative — the unit is driving backwards. Distinct from bIsMoving: a stopped unit isn’t reversing even if it could. AnimBPs use this to swap forward/backward locomotion blendspace inputs.

bool bIsAirborne · default false

Blueprint read-only

True when the unit’s movement mode holds it more than 1 cm above the ground (Get Altitude).

bool bArrivalImminent · default false

Blueprint read-only

True while the unit is on its final leg and within its acceptance radius plus its body radius of the destination. Mirrors Movement Data’s Arrival Imminent; Animation Blueprints use it to blend into an arrival.

bool bHasMovementInput · default false

Blueprint read-only

True while a move drives the unit toward a destination. Mirrors Movement Data’s Has Target and goes false the moment the move ends, before Velocity reads zero; combine it with Is Moving to release a “should move” blend on the order rather than on the stop.