# How to stop the camera from rotating itself on the Z axis

**URL:** <https://forums.unrealengine.com/t/how-to-stop-the-camera-from-rotating-itself-on-the-z-axis/367427>\
**Category:** Mobile\
**Tags:** tilt, Mobile, unreal-engine, Android, Blueprint, question\
**Created:** [August 17, 2016, 5:17pm UTC](https://forums.unrealengine.com/t/how-to-stop-the-camera-from-rotating-itself-on-the-z-axis/367427 "2016-08-17T17:17:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f12287f6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f12287f6](https://forums.unrealengine.com/u/anonymous_user_f12287f6)\
**Post date:** [August 17, 2016, 5:17pm UTC](https://forums.unrealengine.com/t/how-to-stop-the-camera-from-rotating-itself-on-the-z-axis/367427/1 "2016-08-17T17:17:56Z")

</div>

Hello everyone,

I’m trying to make a blueprint where your mobile device serves as a camera view. Just like Google Cardboard VR, move your device up, to look up, move the device to the left, to look left.

So the problem is that I can’t freely look to the left or right (Tilt motion, Z (Yaw) axis), because the camera keeps rotating itself while my device lays flat on the table.

Looking up and down (Rotation Rate motion, Y (Pitch) axis) is fortunately working. 🙂

So how can I stop the camera from rotating itself on the Z axis, so that I can freely look to left and right?

I’m using HTC One M8, Android Version 6.0 Marshmallow.

 ![103284-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/2/c92347b03385e9b2d8f810435ff41ada44f2da4e.png)

 ![103281-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/b/ecba3e236206a6fdbcddcf99a1eb0aa31cbbbb6d.png)

 ![103282-screenshot_20160817-183605.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/2/9424c7516a1d419890aeb89ff551ef3aa47f87ac.jpeg)

 ![103283-screenshot_20160817-191159.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/9/799e6aa77fe0672c7871a90ce138815fa9adf8c5.jpeg)

---

<div class="post-metadata">

**Author:** ![D.Chartrain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D.Chartrain](https://forums.unrealengine.com/u/D.Chartrain)\
**Post date:** [October 3, 2018, 3:00pm UTC](https://forums.unrealengine.com/t/how-to-stop-the-camera-from-rotating-itself-on-the-z-axis/367427/2 "2018-10-03T15:00:04Z")

</div>

Hello, i’ve a solution for this, i use a Rotation Rate Event \> inverse Vector Value \>ann break vector, use x=pitch, y=Yaw, Z=Roll

 ![255496-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db2bb0602dd9f1a820f4559da65abdc8470b17d3.png)
