# Strange rotation behavior

**URL:** <https://forum.babylonjs.com/t/strange-rotation-behavior/26262>\
**Category:** Questions\
**Created:** [December 23, 2021, 2:04pm UTC](https://forum.babylonjs.com/t/strange-rotation-behavior/26262 "2021-12-23T14:04:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pieter\_van\_Stee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pieter_van_stee/32/20145_2.png) [@Pieter\_van\_Stee](https://forum.babylonjs.com/u/Pieter_van_Stee)\
**Post date:** [December 23, 2021, 2:04pm UTC](https://forum.babylonjs.com/t/strange-rotation-behavior/26262/1 "2021-12-23T14:04:59Z")

</div>

Hi there,

Please have a look at my [PG](https://playground.babylonjs.com/#6FT4K5)

I’ve 3 camera’s, when you press the spacebar the scene toggles between the camera’s.  
It works fine if you didn’t rotated the camera’s before.  
However if you just rotated, there seems to be still a rotation going on, when you press the space bar, the next camera will also be rotating it seems?

Let me know if you can’t reproduce this, I’ve made a gif but it’s too large to upload…  
Thanks  
Pieter

---

<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 23, 2021, 2:56pm UTC](https://forum.babylonjs.com/t/strange-rotation-behavior/26262/2 "2021-12-23T14:56:43Z")

</div>

All cameras that are attached to the controls will react to the inputs. You should only attach the controls to the currently active camera:

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

---

<div class="post-metadata">

**Author:** ![Pieter\_van\_Stee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pieter_van_stee/32/20145_2.png) [@Pieter\_van\_Stee](https://forum.babylonjs.com/u/Pieter_van_Stee)\
**Post date:** [December 24, 2021, 7:22pm UTC](https://forum.babylonjs.com/t/strange-rotation-behavior/26262/3 "2021-12-24T19:22:49Z")

</div>

Hi @Evgeni_Popov  
Ok, that’s obvious, thanks for the help!
