# How to achive Rotation only with left and right direction

**URL:** <https://forum.babylonjs.com/t/how-to-achive-rotation-only-with-left-and-right-direction/34988>\
**Category:** Questions\
**Created:** [October 20, 2022, 1:07pm UTC](https://forum.babylonjs.com/t/how-to-achive-rotation-only-with-left-and-right-direction/34988 "2022-10-20T13:07:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavanpk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pavanpk/32/27529_2.png) [@Pavanpk](https://forum.babylonjs.com/u/Pavanpk)\
**Post date:** [October 20, 2022, 1:07pm UTC](https://forum.babylonjs.com/t/how-to-achive-rotation-only-with-left-and-right-direction/34988/1 "2022-10-20T13:07:49Z")

</div>

Hi there.  
I have a Mesh and able to rotate it, but how can i achieve like rotation only to left and right not required to rotate up and down.  
Thanks in advance

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

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 20, 2022, 1:13pm UTC](https://forum.babylonjs.com/t/how-to-achive-rotation-only-with-left-and-right-direction/34988/2 "2022-10-20T13:13:50Z")

</div>

```auto
    camera.upperBetaLimit = BABYLON.Tools.ToRadians(90)
    camera.lowerBetaLimit = BABYLON.Tools.ToRadians(90)

```

Example - [https://playground.babylonjs.com/#RLHYBS#4](https://playground.babylonjs.com/#RLHYBS#4)

Please note, that you rotate not mesh, but camera.

---

<div class="post-metadata">

**Author:** ![Pavanpk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pavanpk/32/27529_2.png) [@Pavanpk](https://forum.babylonjs.com/u/Pavanpk)\
**Post date:** [October 21, 2022, 11:22am UTC](https://forum.babylonjs.com/t/how-to-achive-rotation-only-with-left-and-right-direction/34988/4 "2022-10-21T11:22:58Z")

</div>

Thanks for the information and solution about rotation @labris.
