# Limit universal camera beta

**URL:** <https://forum.babylonjs.com/t/limit-universal-camera-beta/3016>\
**Category:** Questions\
**Created:** [May 6, 2019, 3:32pm UTC](https://forum.babylonjs.com/t/limit-universal-camera-beta/3016 "2019-05-06T15:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manrix](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/manrix/32/2490_2.png) [@manrix](https://forum.babylonjs.com/u/manrix)\
**Post date:** [May 6, 2019, 3:32pm UTC](https://forum.babylonjs.com/t/limit-universal-camera-beta/3016/1 "2019-05-06T15:32:42Z")

</div>

Hi.  
I’m experimenting with cameras. I’m trying to make a free camera but with fixed rotation on beta. The arcrotate camera has properties to limit the beta but the universalcamera does not. So i used this code to force the camera position and rotation:

```auto
scene.beforeRender = function() {
  camera.position.y = 100;
  camera.rotation.x = 120;
};

```

but this is called every time the scene is rendered.  
Is there a better way ?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 6, 2019, 4:08pm UTC](https://forum.babylonjs.com/t/limit-universal-camera-beta/3016/2 "2019-05-06T16:08:01Z")

</div>

Nope this is perfect
