# Adding Yaw/Pitch when the Camera has been Rolled

**URL:** <https://forums.unrealengine.com/t/adding-yaw-pitch-when-the-camera-has-been-rolled/73671>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 15, 2016, 1:19am UTC](https://forums.unrealengine.com/t/adding-yaw-pitch-when-the-camera-has-been-rolled/73671 "2016-09-15T01:19:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClintonWalsh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClintonWalsh](https://forums.unrealengine.com/u/ClintonWalsh)\
**Post date:** [September 15, 2016, 1:19am UTC](https://forums.unrealengine.com/t/adding-yaw-pitch-when-the-camera-has-been-rolled/73671/1 "2016-09-15T01:19:14Z")

</div>

Hi all,

I am trying to rotate the camera after I have flipped it onto its side. I am currently using the standard FPS setup with _InputAxis Turn/Lookup_ and _Add Controller Yaw/Pitch Input_:

 ![MouseInput.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/7/77cc38e1ef96cfac5bd095509d69c4097121355c.png)

The problem is that when the camera is flipped on its side the pitch/yaw are still oriented to the world and not the local rotation of the camera. Below shows the camera on its side and the orientation of pitch.

 ![Pitch.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/a/3a7f24a673a9591c9f925b94af1842ff1c2c3922.png)  
The arrow is the direction of camera movement when I move my mouse up and down.

I want to be able to change the orientation of pitch/yaw to local instead of world so that it accounts for the roll of the camera. Does anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![ClintonWalsh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClintonWalsh](https://forums.unrealengine.com/u/ClintonWalsh)\
**Post date:** [September 25, 2016, 12:07am UTC](https://forums.unrealengine.com/t/adding-yaw-pitch-when-the-camera-has-been-rolled/73671/2 "2016-09-25T00:07:40Z")

</div>

If anyone finds this thread later. I managed to solve this by using the following Blueprint:

 ![MotionController.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/d/09d95892e1d52454c0e59c306a248f5a68d47303.png)

So far this has not caused any problems.

---

<div class="post-metadata">

**Author:** ![Player\_toaster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/player_toaster/32/1104262_2.png) [@Player\_toaster](https://forums.unrealengine.com/u/Player_toaster)\
**Post date:** [September 10, 2025, 3:38pm UTC](https://forums.unrealengine.com/t/adding-yaw-pitch-when-the-camera-has-been-rolled/73671/3 "2025-09-10T15:38:55Z")

</div>

i know im ten years late to be asking questions, but ive been trying for ages to get something anything to work, how does this solve the pitch/yaw not working while rolled? is there anyway you can give a slightly more detailed fix, cause i am using newer versions so the input system is vastly different
