# Questions about change position of xr camera

**URL:** <https://forum.babylonjs.com/t/questions-about-change-position-of-xr-camera/10831>\
**Category:** Questions\
**Created:** [May 14, 2020, 7:00am UTC](https://forum.babylonjs.com/t/questions-about-change-position-of-xr-camera/10831 "2020-05-14T07:00:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ershin](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ershin/32/8390_2.png) [@Ershin](https://forum.babylonjs.com/u/Ershin)\
**Post date:** [May 14, 2020, 7:00am UTC](https://forum.babylonjs.com/t/questions-about-change-position-of-xr-camera/10831/1 "2020-05-14T07:00:05Z")

</div>

Hello, i’m trying to use  
xrHelper.setPositionOfCameraUsingContainer(new Vector3(a ,a ,a));  
xrCamera.setTransformationFromNonVRCamera(camera);  
after add these code my scene struck at (Loading assets… Please wait.) so can some one point me some example how to use  
xrHelper.setPositionOfCameraUsingContainer(new Vector3(a ,a ,a));  
xrCamera.setTransformationFromNonVRCamera(camera);  
thank you

ps. i’m already trying to search about these code but what i got is only the code not the pg of these code.  
mypg:  
[https://playground.babylonjs.com/pg/9K3MRA/revision/41](https://playground.babylonjs.com/pg/9K3MRA/revision/41)

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 14, 2020, 2:52pm UTC](https://forum.babylonjs.com/t/questions-about-change-position-of-xr-camera/10831/2 "2020-05-14T14:52:27Z")

</div>

pinging XR master @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:** [May 14, 2020, 5:50pm UTC](https://forum.babylonjs.com/t/questions-about-change-position-of-xr-camera/10831/3 "2020-05-14T17:50:25Z")

</div>

Hi Ershin,

(Correction edit)  
not sure where you found the reference to the first function, but it is old and was removed from the API. You can control your camera jsut as you do with a regular camera. Doc is here - [The WebXR Camera - Babylon.js Documentation](https://doc.babylonjs.com/how_to/webxr_camera)

The second function is used to copy the transformative of a regular camera when entering XR and is called automatically when you start a session. Afterwards you can use position and rotationQuaternion to set the camera’s transforming
