# Smoothly continue Relative Rotation when passing 0 or 360 degrees

**URL:** <https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [May 23, 2023, 4:30pm UTC](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056 "2023-05-23T16:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TugMyIantern](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TugMyIantern](https://forums.unrealengine.com/u/TugMyIantern)\
**Post date:** [May 23, 2023, 4:30pm UTC](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056/1 "2023-05-23T16:30:58Z")

</div>

Hello! I’ve been trying to create a Tracking Turret inside of Blueprint coding.  
I’ve managed to get smooth movement on the vertical and horizontal axis relative to the turret’s own rotation;

For example, if the turret is on a wall, an angled slope or a rotating platform, both horizontal and vertical joints are successfully restricted relative to the turret and will allow the barrel to track it’s target.

However I have found an issue when the horizontal axis passes the relative marks for 0 or 360 degrees. This cause the turret to spin the entire way around, rotating from 0 \> 359 degrees instead of just 0 \> -1. I’ve tried looking for similar issues but have yet to find any.

Is there any way to smoothly go from a relative rotation of 0 to 359 degrees without it needing to go the full rotation?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 23, 2023, 4:39pm UTC](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056/2 "2023-05-23T16:39:52Z")

</div>

If it’s constantly moving in a linear fashion, you can just use ‘add local rotation’.

If you’re using a timeline, you can probably do it with ‘combine rotators’, in the correct order.

---

<div class="post-metadata">

**Author:** ![DurrinTreyvan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DurrinTreyvan](https://forums.unrealengine.com/u/DurrinTreyvan)\
**Post date:** [August 7, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056/3 "2025-08-07T17:39:15Z")

</div>

Did you ever figure this out? I’m having the same problem. Using Add Relative Rotation works fine on Z and Y axis, but stutters/stops on the X axis when it tries to cross 0 or 360…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 8, 2025, 7:51am UTC](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056/4 "2025-08-08T07:51:26Z")

</div>

It’s a well known problem.

To avoid it, you can use one of:

1 Only ever add local rotation

2 Only ever add rotators together ( so don’t break open nodes and change the XYZ independently )

3 Use quaternions
