Jump to content

WebVRFreeCamra position issue


Recommended Posts

I'm attempting to move a WebVRFreeCamera camera around a scene, but setting it's position while in VR mode sees to have no effect.

I've created a WebVRFreeCamera and a ExperenceHelper with the trackPosition option off.

The WebVR emulator in chrome has no effect on the position of the camera, so that false value is applied. 

It is not parented to anything nor has children.

Tracing the camera's position values in the render loop confirms changing position values, but the camera is not moving in the scene.  Appears stuck at the origin.

The playground exhibits the expected behavior.  With the camera.y incremented before render, the camera should animate away.


Any Ideas welcome.  I've spent ~5 hours already on this one issue


Link to comment
Share on other sites

Since you are using the experience helper, did you try:

experienceHelper.currentVRCamera.position.y += 0.01

Edit - that's only going to have an effect when you are in VR mode.  Check this code if you want to animate the movement:

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...