# UE5.6 Locomotion State Machine - Pivot (Direction Change) Occasionally Fails to Trigger

**URL:** <https://forums.unrealengine.com/t/ue5-6-locomotion-state-machine-pivot-direction-change-occasionally-fails-to-trigger/2732550>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 30, 2026, 5:34pm UTC](https://forums.unrealengine.com/t/ue5-6-locomotion-state-machine-pivot-direction-change-occasionally-fails-to-trigger/2732550 "2026-06-30T17:34:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zo7777777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zo7777777](https://forums.unrealengine.com/u/Zo7777777)\
**Post date:** [June 30, 2026, 5:34pm UTC](https://forums.unrealengine.com/t/ue5-6-locomotion-state-machine-pivot-direction-change-occasionally-fails-to-trigger/2732550/1 "2026-06-30T17:34:38Z")

</div>

Hi everyone, I’m building a Locomotion state machine in UE5.6 using the Game Animation Sample animation pack with a Lyra-style AnimBP architecture (BPA\_BaseAnim logic layer + implementation layer).

**Current Setup:**

State machine: `Idle → Run_Start → Run_Loop ↔ Pivot → Run_Loop`. Pivot is a sub-state machine with PivotA ↔ PivotB ping-pong (to work around UE not supporting self-transitions).

Angle calculation: Thread-safe function uses `GetLastInputVector` + `FindLookAtRotation` + `NormalizedDeltaRotator` to compute “Input Direction Angle” (relative to character facing, -180 to 180).

Pivot entry condition: `│Input Direction Angle│ >= 60` Pivot exit condition: AnimNotifyState (Lyra approach - transition only allowed when animation reaches the exit window) + `HasAcceleration` PivotA→PivotB condition: Direction reversal detection (current angle × entry snapshot angle \< 0) OrientRotationToMovement enabled, Rotation Rate Yaw = 540

**The Problem:**

Pivot triggers correctly in normal gameplay, but **occasionally fails when rapidly switching directions in quick succession** — the character just rotates within the Loop state instead of playing the Pivot animation.

**Questions:**

1. How do you trigger Pivot in your projects? Angle-based or dot product?
2. Has anyone encountered similar missed triggers? How did you fix it?
3. Is there a built-in solution in Lyra / Game Animation Sample?
4. Has anyone tried Input Direction Delta (rate of change of input direction)? How does it perform?

Thanks in advance!
