# Orient camera according to specific axis positionning

**URL:** <https://forum.babylonjs.com/t/orient-camera-according-to-specific-axis-positionning/23363>\
**Category:** Questions\
**Tags:** camera\
**Created:** [August 26, 2021, 3:23pm UTC](https://forum.babylonjs.com/t/orient-camera-according-to-specific-axis-positionning/23363 "2021-08-26T15:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tynail](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tynail/32/17666_2.png) [@tynail](https://forum.babylonjs.com/u/tynail)\
**Post date:** [August 26, 2021, 3:23pm UTC](https://forum.babylonjs.com/t/orient-camera-according-to-specific-axis-positionning/23363/1 "2021-08-26T15:23:57Z")

</div>

Hi, I want to position my ArcRotateCamera so that the axis look like this:  
 ![Axis](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/0/b0eb4076297563576a46171b2daecb3b74e0a73c.png)

But I am really struggling to do it because of the behavior of the Camera.

Is there an easy way to achieve this.

I will implement a button so that the user can click on it and the camera will automatically be pointing in a position related to the axis.

I have quicly create a playground to test it: [https://playground.babylonjs.com/#2EYZPE#286](https://playground.babylonjs.com/#2EYZPE#286).  
My initial project is much more complex tho, I use Babylon in an Angular project to view mesh, so take note that in my project, the ArcRotateCamera rotate around the center of the loaded mesh.

Thank you!

Marc-André

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 26, 2021, 4:01pm UTC](https://forum.babylonjs.com/t/orient-camera-according-to-specific-axis-positionning/23363/2 "2021-08-26T16:01:09Z")

</div>

Howdy,

One way of achieving this is to add a transform node as a parent for the camera and provide an initial rotation to it in order to “change” the camera’s upvector.

[andre | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#2EYZPE#287)

---

<div class="post-metadata">

**Author:** ![tynail](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tynail/32/17666_2.png) [@tynail](https://forum.babylonjs.com/u/tynail)\
**Post date:** [August 26, 2021, 4:10pm UTC](https://forum.babylonjs.com/t/orient-camera-according-to-specific-axis-positionning/23363/3 "2021-08-26T16:10:15Z")

</div>

Woah! it is exactly what I wanted! Thank you for the extremely fast respond! You guys are amazing!

Have a great day!
