# How to disable headtracking on WebXRCamera (i.e fixed position, with rotation)

**URL:** <https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857>\
**Category:** Questions\
**Created:** [April 9, 2021, 12:51pm UTC](https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857 "2021-04-09T12:51:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_nguyen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mark_nguyen/32/29662_2.png) [@mark\_nguyen](https://forum.babylonjs.com/u/mark_nguyen)\
**Post date:** [April 9, 2021, 12:51pm UTC](https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857/1 "2021-04-09T12:51:19Z")

</div>

Hi all,

I’d like to fix my XRCamera at a single point in space but still allow rotation. How might I achieve this?

Thanks!  
Mark

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [April 9, 2021, 3:29pm UTC](https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857/2 "2021-04-09T15:29:07Z")

</div>

Hey,

this is very much not recommended when in VR. a recipe for headaches…  
Having said that, you can set the camera’s position on each frame. This will force the camera to stay in place. Something along the lines of:

```auto
scene.onBeforeRenderObservable.add(() => {
amera.position.set(0,1,0);
});

```

---

<div class="post-metadata">

**Author:** ![mark\_nguyen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mark_nguyen/32/29662_2.png) [@mark\_nguyen](https://forum.babylonjs.com/u/mark_nguyen)\
**Post date:** [April 9, 2021, 3:31pm UTC](https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857/3 "2021-04-09T15:31:02Z")

</div>

Thanks Raanan!

How is the camera setup for things like 360 video? Do they lock camera position or is there a degree of freedom in movement?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [April 9, 2021, 3:32pm UTC](https://forum.babylonjs.com/t/how-to-disable-headtracking-on-webxrcamera-i-e-fixed-position-with-rotation/19857/4 "2021-04-09T15:32:36Z")

</div>

A videoDome is a huge sphere (the default is 1000 units), so movement is not noticeable. The user can, however, move around freely in the space they have (in the real world).
