Skip to content

SeinARTS Movement Library

Class · USeinMovementBPFL : UBlueprintFunctionLibrary

#include "Lib/SeinMovementBPFL.h"

deterministic: safe in simulation code

Blueprint nodes for movement. The getters read a unit’s derived movement state for Animation Blueprints and UI, and the actions stop a unit or turn it toward a point.

Movement / Animation

One-node AnimBP entry point: takes the owning actor, resolves the entity handle internally, and returns the full movement state snapshot. Returns false (OutState zeroed) when the actor presents no living entity or the entity has no movement component.

static bool SeinGetAnimationMovementState(const UObject* WorldContextObject, AActor* Actor, FSeinMovementStateData& OutState);

Movement

Composite read of derived movement state for an entity. Composes entity transform + Movement Data (+ optional sub-data Altitude) into AnimBP-shaped derived values (Velocity, Speed, Direction, etc.). Returns false on invalid handle / missing movement component (OutState reset to defaults).

static bool SeinGetMovementState(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FSeinMovementStateData& OutState);

The unit’s planar velocity in cm/s, or zero when the entity has no movement. When you read several fields each frame, call Get Movement State once and break the struct instead.

static FVector SeinGetVelocity(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

Signed forward speed in cm/s: positive moving forward, negative reversing.

static float SeinGetSpeed(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

Planar speed in cm/s. Never negative.

static float SeinGetGroundSpeed(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

Angle in degrees, from -180 to 180, between the unit’s facing and its velocity. 0 when moving forward or stationary, 180 when reversing. Feeds strafe blend spaces.

static float SeinGetDirection(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

True while the unit’s planar speed is above about 1 cm/s.

static bool SeinIsMoving(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

True while the unit is driving backwards.

static bool SeinIsReversing(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

True while the unit’s movement mode holds it more than 1 cm above the ground.

static bool SeinIsAirborne(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

True on the unit’s final leg once it is within its acceptance radius plus its body radius of the destination. Use it to blend into an arrival animation.

static bool SeinIsArrivalImminent(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

True while a move is driving the unit toward a destination. It turns false the moment the move ends, before the velocity reads zero.

static bool SeinHasMovementInput(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

Reads a render value the unit’s movement mode wrote under Key (Set Render Value on the Sein Mover Handle). Returns 0 when it wrote none. Drives visuals only.

static float SeinGetMovementRenderValue(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Key);

Stops the unit’s current move and nothing else: the unit halts where it is and the Move To Cancelled output fires. Other latent actions on the unit keep running; to cancel those, use Cancel All Actions or Cancel Actions Of Class. Does nothing if the unit is not moving. Call it from simulation code such as an ability, like Move To.

static void SeinStopMovement(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle);

Turn the unit toward a world point while it has no move, at its Turn Rate, ahead of its formation slot’s facing: an attacker facing its target. It holds until the unit next moves; call it again to follow a moving target. A movement mode that overrides Compute Idle Motion decides its own facing. Sim-side: call from an ability, like Move To.

static void SeinFacePoint(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FFixedVector WorldPoint);
C++ members (1)
  • static bool GetMovementRenderValueFixed(const UObject* WorldContextObject, FSeinEntityHandle EntityHandle, FGameplayTag Key, FFixedPoint& OutValue); Native presentation read that preserves fixed-point precision until the caller performs its final render-boundary conversion.