# Y rotation value going from 0-90-0 and switching x and z values to 180

**URL:** <https://forums.unrealengine.com/t/y-rotation-value-going-from-0-90-0-and-switching-x-and-z-values-to-180/2635374>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 9, 2025, 12:24am UTC](https://forums.unrealengine.com/t/y-rotation-value-going-from-0-90-0-and-switching-x-and-z-values-to-180/2635374 "2025-08-09T00:24:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 9, 2025, 7:33am UTC](https://forums.unrealengine.com/t/y-rotation-value-going-from-0-90-0-and-switching-x-and-z-values-to-180/2635374/2 "2025-08-09T07:33:41Z")

</div>

Take a look at my answer to this post

> [@Smoothly continue Relative Rotation when passing 0 or 360 degrees](https://forums.unrealengine.com/t/smoothly-continue-relative-rotation-when-passing-0-or-360-degrees/1176056/4):
>
> 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

It’s because rotation is not as simple as it seems 🙂

---

_[View the full topic](https://forums.unrealengine.com/t/y-rotation-value-going-from-0-90-0-and-switching-x-and-z-values-to-180/2635374)._
