# Web vr - no camera movement

**URL:** <https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612>\
**Category:** Bugs\
**Created:** [May 30, 2019, 7:08pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612 "2019-05-30T19:08:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedrrran](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vedrrran/32/3578_2.png) [@vedrrran](https://forum.babylonjs.com/u/vedrrran)\
**Post date:** [May 30, 2019, 7:08pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/1 "2019-05-30T19:08:38Z")

</div>

I’m learning Babylon and would like to use it for a VR project. I made a test Codepen but my device (iPhone 8 Plus on Chrome and Safari) doesn’t pick up any movement (rotation).

Here is the pen:  
[https://codepen.io/tendency/pen/dERLvg](https://codepen.io/tendency/pen/dERLvg)  
(I have also downloaded and run the pen on my local setup, but still with the same result)

Can someone try it and maybe let me know if I missed something?

Thanks!  
Vedran

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [May 30, 2019, 7:17pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/2 "2019-05-30T19:17:00Z")

</div>

I think position change is new for WebXR cameras. The older VR only did rotation. Also, it requires that the device support, i think, `emersive` mode. This is either via a camera on the device, or pass through optics like Hololens & Magic Leap.

---

<div class="post-metadata">

**Author:** ![vedrrran](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vedrrran/32/3578_2.png) [@vedrrran](https://forum.babylonjs.com/u/vedrrran)\
**Post date:** [May 30, 2019, 7:37pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/3 "2019-05-30T19:37:32Z")

</div>

Rotation is also not working.  
(Tested in Chrome)  
(Thanks for fast reply!)

---

<div class="post-metadata">

**Author:** ![trevordev](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trevordev/32/16_2.png) [@trevordev](https://forum.babylonjs.com/u/trevordev)\
**Post date:** [May 30, 2019, 8:10pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/4 "2019-05-30T20:10:47Z")

</div>

Apple updated safari to disable the orientation sensor by default. You should still be able to turn it on in settings. Ill add a sample how to prompt the user. See this issue: [VR example for iphone after new sensor privacy change · Issue #6395 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/issues/6395)

---

<div class="post-metadata">

**Author:** ![vedrrran](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vedrrran/32/3578_2.png) [@vedrrran](https://forum.babylonjs.com/u/vedrrran)\
**Post date:** [May 30, 2019, 9:17pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/5 "2019-05-30T21:17:06Z")

</div>

I have enabled “Motion & Orientation Access” for Safari, but I’m still without result in Safari and Chrome. There is still no motion.

---

<div class="post-metadata">

**Author:** ![trevordev](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trevordev/32/16_2.png) [@trevordev](https://forum.babylonjs.com/u/trevordev)\
**Post date:** [June 3, 2019, 9:56pm UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/6 "2019-06-03T21:56:52Z")

</div>

Are you on an https website? It looks like that is needed as well.

---

<div class="post-metadata">

**Author:** ![vedrrran](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vedrrran/32/3578_2.png) [@vedrrran](https://forum.babylonjs.com/u/vedrrran)\
**Post date:** [July 14, 2019, 10:58am UTC](https://forum.babylonjs.com/t/web-vr-no-camera-movement/3612/7 "2019-07-14T10:58:27Z")

</div>

https made it work when I serve content from my server.  
…but codepen example is still not working even it’s served from https.
