# Change rotation order (from Roll/Pitch/Yaw to Roll/Yaw/Pitch)

**URL:** <https://forums.unrealengine.com/t/change-rotation-order-from-roll-pitch-yaw-to-roll-yaw-pitch/503718>\
**Category:** Blueprint\
**Tags:** rotation, unreal-engine, UE4-27, question\
**Created:** [March 3, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/change-rotation-order-from-roll-pitch-yaw-to-roll-yaw-pitch/503718 "2022-03-03T15:10:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![left\_goes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@left\_goes](https://forums.unrealengine.com/u/left_goes)\
**Post date:** [March 3, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/change-rotation-order-from-roll-pitch-yaw-to-roll-yaw-pitch/503718/1 "2022-03-03T15:10:16Z")

</div>

Trying to avoid gimbal lock when rotating (using blueprints).

My setup allows me to use only roll and pitch to do my thing, but since pitch is second in the rotation order, I get gimbal lock.

Any way to change the rotation order and put yaw in the middle, which I can avoid using?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![NotSoAccurateNo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NotSoAccurateNo1](https://forums.unrealengine.com/u/NotSoAccurateNo1)\
**Post date:** [March 4, 2022, 4:17am UTC](https://forums.unrealengine.com/t/change-rotation-order-from-roll-pitch-yaw-to-roll-yaw-pitch/503718/2 "2022-03-04T04:17:24Z")

</div>

Can you show your blueprint? I don’t think changing rotation order will since your problem. UE4 can be pretty particular with rotations but as long as you use nodes that respect rotators then you shouldn’t experience gimbal lock

---

<div class="post-metadata">

**Author:** ![left\_goes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@left\_goes](https://forums.unrealengine.com/u/left_goes)\
**Post date:** [March 4, 2022, 2:24pm UTC](https://forums.unrealengine.com/t/change-rotation-order-from-roll-pitch-yaw-to-roll-yaw-pitch/503718/3 "2022-03-04T14:24:07Z")

</div>

I can certainly show my blueprint, but in essence I use ‘add actor local rotation’ or ‘set actor rotation’.
