# ArcRotateCamera change axis of rotation

**URL:** <https://forum.babylonjs.com/t/arcrotatecamera-change-axis-of-rotation/10871>\
**Category:** Questions\
**Created:** [May 15, 2020, 9:31am UTC](https://forum.babylonjs.com/t/arcrotatecamera-change-axis-of-rotation/10871 "2020-05-15T09:31:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jodo](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@jodo](https://forum.babylonjs.com/u/jodo)\
**Post date:** [May 15, 2020, 9:31am UTC](https://forum.babylonjs.com/t/arcrotatecamera-change-axis-of-rotation/10871/1 "2020-05-15T09:31:16Z")

</div>

I am working with Autosar Coordinates and would like to avoid having to transform everything. So with a a bit of rotating stuff around and setting useRightHandedSystem for the scene everything is fine.

What I haven’t figured out yet, is how to handle the ArcRotateCamera. By default it rotates (alpha and beta) around the y-axis. But I would need it to rotate around the z-axis now. Couldn’t find how to do this ☹

I prepared a playground to showcase. I would like to rotate around the z-axis (blue arrow) instead of the y-axis (green arrow).  
[https://playground.babylonjs.com/#CF8SFP#3](https://playground.babylonjs.com/#CF8SFP#3)

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [May 15, 2020, 12:33pm UTC](https://forum.babylonjs.com/t/arcrotatecamera-change-axis-of-rotation/10871/2 "2020-05-15T12:33:56Z")

</div>

Hi @jodo and welcome back. This is a totally wild suggestion that could throw all your axes off kilter and I do not know whether it will do anything at all. I am just on a mobile currently so can’t try it out. Might be worth a play with.

Set camera upVector to z axis

[https://doc.babylonjs.com/api/classes/babylon.arcrotatecamera#upvector](https://doc.babylonjs.com/api/classes/babylon.arcrotatecamera#upvector)

---

<div class="post-metadata">

**Author:** ![jodo](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@jodo](https://forum.babylonjs.com/u/jodo)\
**Post date:** [May 15, 2020, 12:41pm UTC](https://forum.babylonjs.com/t/arcrotatecamera-change-axis-of-rotation/10871/3 "2020-05-15T12:41:27Z")

</div>

Hero! Thanks a lot.  
`camera.upVector = new BABYLON.Vector3(0, 0, 1);`  
did the trick
