# ArcRotateCamera alpha rotation inverted in certain beta range

**URL:** <https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-certain-beta-range/36357>\
**Category:** Questions\
**Created:** [December 7, 2022, 11:01pm UTC](https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-certain-beta-range/36357 "2022-12-07T23:01:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ne1114](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ne1114/32/27869_2.png) [@ne1114](https://forum.babylonjs.com/u/ne1114)\
**Post date:** [December 7, 2022, 11:01pm UTC](https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-certain-beta-range/36357/1 "2022-12-07T23:01:21Z")

</div>

Hello 🙂

I am using ArcRotateCamera to be able to view a mesh in any direction. And I expect the user may rotate the mesh in `beta` arc a lot so I set huge values to `camera.lowerBetaLimit` and `camera.upperBetaLimit`.

When I rotate the camera to certain `beta` range (ex. -pi/2 ~ -3\*pi/2, and so on), the rotation in `alpha` arc is inverted. When I drag left, mesh rotates right. How can I fix this issue?

In PG1, by setting the betaLimit to null, this behavior is resolved. **However** , I cannot set nor delete betaLimit attributes to null because I’m using typescript.  
PG2 is my current setting/repro.

How may I update PG2 to get same behavior as PG1?

PG1 : [https://playground.babylonjs.com/#SRZRWV#509](https://playground.babylonjs.com/#SRZRWV#509)  
PG2 : [https://playground.babylonjs.com/#SRZRWV#1202](https://playground.babylonjs.com/#SRZRWV#1202)

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [December 8, 2022, 6:35am UTC](https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-certain-beta-range/36357/2 "2022-12-08T06:35:22Z")

</div>

try to “(camera as any).betaLimit = null”

---

<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 8, 2022, 11:01am UTC](https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-certain-beta-range/36357/3 "2022-12-08T11:01:16Z")

</div>

This PR will allow you to set `null` for `upper`/`lowerBetaLimit` even in Typescript:

> <https://github.com/BabylonJS/Babylon.js/pull/13330>
>
> See https://forum.babylonjs.com/t/arcrotatecamera-alpha-rotation-inverted-in-cer…tain-beta-range/36357
