# How to fix the rotator pitch bug

**URL:** <https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938>\
**Category:** C++\
**Tags:** pitch, rotator, limit, unreal-engine, CPP, question\
**Created:** [July 11, 2014, 11:43am UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938 "2014-07-11T11:43:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StrangerGwenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strangergwenn/32/983202_2.png) [@StrangerGwenn](https://forums.unrealengine.com/u/StrangerGwenn)\
**Post date:** [July 11, 2014, 11:43am UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938/1 "2014-07-11T11:43:04Z")

</div>

Hi,

I just found out that a rotator’s Pitch value is limited to -90 / +90 (that can be checked in the editor while rotating a mesh). Additional rotation is converted to -90/+90 by offsetting Yaw and Roll by 180°.

This is very painful when working directly with rotation components. I’m working on a simulation in which a plane has to control its attitude ; implementing a regulator with these values is very difficult. How can I convert the pitch, yaw, roll values back to a correct form ?

Thanks

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [July 11, 2014, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938/2 "2014-07-11T15:21:14Z")

</div>

It is a confirmed bug and will be fixed, but there is no ETA given.  
Look here for further information:

> **[How can I create a day/night cycle in a small world?](https://forums.unrealengine.com/questions/21168/pitch-limited-to-90-90.html)**
>
> Hey there, I was trying to create an automatic day-night cycle so I set up a small world in which there’s only a boxbrush, a directional light actor and a native skysphere blueprint. I set the directional light to be used by the skysphere as the...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ad4a3c1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ad4a3c1e](https://forums.unrealengine.com/u/anonymous_user_ad4a3c1e)\
**Post date:** [April 11, 2016, 4:44pm UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938/3 "2016-04-11T16:44:43Z")

</div>

When??? Its 2016 already

---

<div class="post-metadata">

**Author:** ![organicFoil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@organicFoil](https://forums.unrealengine.com/u/organicFoil)\
**Post date:** [August 23, 2018, 1:57pm UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938/4 "2018-08-23T13:57:56Z")

</div>

Its 2018! Problem still exist

---

<div class="post-metadata">

**Author:** ![StrangerGwenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strangergwenn/32/983202_2.png) [@StrangerGwenn](https://forums.unrealengine.com/u/StrangerGwenn)\
**Post date:** [August 23, 2018, 2:55pm UTC](https://forums.unrealengine.com/t/how-to-fix-the-rotator-pitch-bug/287938/5 "2018-08-23T14:55:20Z")

</div>

This behavior is very unlikely to be fixed ever, as any change would be likely to break all projects. The correct solution here is to use quaternions instead, which do not exhibit any such issue.
