edzis Posted April 28, 2018 Share Posted April 28, 2018 I have a car moving based on some custom inputs. I want to put WebVRCamera in the driver's position, so they can look around using their headset. I have tried several ways to attach it to my car with no success: helper.webVRCamera.parent = content.headContainer seems to have no effect. helper.webVRCamera.position = content.boardFloor.position and helper.webVRCamera.rotation = content.boardFloor.rotation is messing up when the car rotates Quote Link to comment Share on other sites More sharing options...
Guest Posted April 29, 2018 Share Posted April 29, 2018 Pinging @trevordev Quote Link to comment Share on other sites More sharing options...
trevordev Posted April 30, 2018 Share Posted April 30, 2018 Parenting is not supported by the webVR camera at the moment, one option for now could be to attach your entire scene except the car to a mesh and move that around to simulate the car moving but that is likely not ideal. Created https://github.com/BabylonJS/Babylon.js/issues/4245 to track this issue. 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.