# Trying to rotate ArcRotateCamera towards the Z Axis "tilting"

**URL:** <https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891>\
**Category:** Questions\
**Tags:** camera, arcrotatecamera, rotationaxis\
**Created:** [October 18, 2022, 8:53am UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891 "2022-10-18T08:53:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djamesg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/djamesg/32/25266_2.png) [@djamesg](https://forum.babylonjs.com/u/djamesg)\
**Post date:** [October 18, 2022, 8:53am UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891/1 "2022-10-18T08:53:13Z")

</div>

Hello, I’m trying to rotate ArcRotateCamera along towards the Z Axis but without any luck.  
“camera.rotation.z” does not seem to work and neither does assigning “rotationQuaternion” to null prior to rotating. can anyone help?  
this playground link will help you understand what I’m trying to achieve(using FreeCamera):

> **[Babylon.js Playground](https://playground.babylonjs.com/#JP79GH)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 18, 2022, 9:33am UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891/2 "2022-10-18T09:33:01Z")

</div>

I’m not sure you can do it through an angle property: @PolygonalSun will know for sure.

As a workaround (or maybe it’s the official way of doing it), you can update the up vector of the camera:

> **[Babylon.js Playground](https://playground.babylonjs.com/#JP79GH%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![djamesg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/djamesg/32/25266_2.png) [@djamesg](https://forum.babylonjs.com/u/djamesg)\
**Post date:** [October 18, 2022, 9:47am UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891/3 "2022-10-18T09:47:13Z")

</div>

thank you for tip this will help for now. 🧡

---

<div class="post-metadata">

**Author:** ![PolygonalSun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/polygonalsun/32/2704_2.png) [@PolygonalSun](https://forum.babylonjs.com/u/PolygonalSun)\
**Post date:** [October 19, 2022, 4:01pm UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891/4 "2022-10-19T16:01:33Z")

</div>

For the given PG, changing the upVector is easiest way to address this.

---

<div class="post-metadata">

**Author:** ![djamesg](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/djamesg/32/25266_2.png) [@djamesg](https://forum.babylonjs.com/u/djamesg)\
**Post date:** [October 24, 2022, 9:14am UTC](https://forum.babylonjs.com/t/trying-to-rotate-arcrotatecamera-towards-the-z-axis-tilting/34891/5 "2022-10-24T09:14:05Z")

</div>

All right then, it’s settled and that solution satisfies my needs so thank you all and keep up the good work \<3
