# How to move positions using WebVR camera

**URL:** https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263
**Category:** Questions
**Created:** [August 10, 2020, 7:08pm UTC](https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263 "2020-08-10T19:08:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aklaus](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@aklaus](https://forum.babylonjs.com/u/aklaus)
#### Post date: [August 10, 2020, 7:08pm UTC](https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263/1 "2020-08-10T19:08:26Z")

</div>

Hello! I have a [playground](https://www.babylonjs-playground.com/#NGS9AU#159) that has two room meshes. I want users to be able to switch between being in each room. However, I haven’t been able to get my WebVR camera to change its position coordinates. Ideally, I’d set it up so that upon selecting a button with an XR motion controller a user would be able to switch between the two rooms. Would anyone be able to point me in the direction of a solution? Thanks!

---

<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: [August 10, 2020, 8:25pm UTC](https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263/2 "2020-08-10T20:25:56Z")

</div>

Pinging our XR overlord @RaananW

---

<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: [August 11, 2020, 10:37am UTC](https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263/3 "2020-08-11T10:37:35Z")

</div>

Hey!

You can change the camera’s position on pointer down (or up).Something like this:

[https://www.babylonjs-playground.com/#NGS9AU#160](https://www.babylonjs-playground.com/#NGS9AU#160)

There should be a few extra checks (especially - am I in XR?) , but this can get you started 🙂

---

<div class="post-metadata">

### Author: ![aklaus](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@aklaus](https://forum.babylonjs.com/u/aklaus)
#### Post date: [August 12, 2020, 1:22am UTC](https://forum.babylonjs.com/t/how-to-move-positions-using-webvr-camera/13263/4 "2020-08-12T01:22:19Z")

</div>

Thanks so much Raanan, that was supremely helpful!
