# Setting the same rotation between two different cameras

**URL:** <https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537>\
**Category:** Questions\
**Created:** [December 13, 2022, 9:54pm UTC](https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537 "2022-12-13T21:54:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyfirgun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tonyfirgun/32/17184_2.png) [@tonyfirgun](https://forum.babylonjs.com/u/tonyfirgun)\
**Post date:** [December 13, 2022, 9:54pm UTC](https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537/1 "2022-12-13T21:54:29Z")

</div>

Hey guys,

I have an ArcRotateCamera and a TargetCamera. What I’m trying to do is set the rotation.y of the TargetCamera to be that the same of the ArcRotateCamera so that they’re facing the same way

I tried doing this but it’s completely off:  
`TargetCamera.rotation.y = ArcRotateCamera.alpha`

Any help would be greatly appreciated

---

<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:** [December 14, 2022, 11:50am UTC](https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537/2 "2022-12-14T11:50:13Z")

</div>

I’m not sure what you really want to achieve.

Updating `rotation.y` with `ArcRotateCamera.alpha` works in some way:

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

(left camera is arc rotate, right is free camera)

If you want the target camera to show exactly the same thing than the arc rotate camera then the maths are probably a lot more involved…

---

<div class="post-metadata">

**Author:** ![tonyfirgun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tonyfirgun/32/17184_2.png) [@tonyfirgun](https://forum.babylonjs.com/u/tonyfirgun)\
**Post date:** [December 16, 2022, 8:43pm UTC](https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537/3 "2022-12-16T20:43:17Z")

</div>

So basically I have a 3rd person camera and a 1st person camera. When I change the active camera to the 1st person camera, I just want the 1st person camera to be facing the same direction as the 3rd person camera

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 16, 2022, 11:10pm UTC](https://forum.babylonjs.com/t/setting-the-same-rotation-between-two-different-cameras/36537/4 "2022-12-16T23:10:58Z")

</div>

Can you share a playground of where you are at the moment ? and we ll see what is the best option to fix it ?
