ranagraw Posted April 23, 2018 Share Posted April 23, 2018 When we enter into VR mode (using the defaultVRExperience), the VR camera is at the same position as the desktop view camera. So, if a user played with the default Universal Camera before entering into VR, (s)he would begin somewhere in the air. To fix this, I added an `onEnteringVRObservable` that changes the position of the WebVR camera, but that didn't seem to work (https://playground.babylonjs.com/#VTUSD6). How can I make the user start from the ground (a fixed point on the ground will also work)? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 23, 2018 Share Posted April 23, 2018 Ping @trevordev Quote Link to comment Share on other sites More sharing options...
trevordev Posted April 23, 2018 Share Posted April 23, 2018 Take a look at this playground: https://www.babylonjs-playground.com/#ZI9AK7#243 . The onEnteringVRObservable is fired prior to swapping to the webVR camera which's position is set from the current active camera so if you set the active cameras positions you can change where the webVR camera will start. Hope this helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.