Dad72 Posted January 25, 2017 Share Posted January 25, 2017 I noticed on this PG on VR cameras that detachControl is not defined : http://www.babylonjs-playground.com/#IGIJC#3 Quote Link to comment Share on other sites More sharing options...
eugenesia Posted January 25, 2017 Share Posted January 25, 2017 The error I'm getting is Line 12:44 - Cannot read property 'detachControl' of undefined for the line 12 camera.inputs.attached.VRDeviceOrientation.detachControl(canvas); It seems to be due to the object camera.inputs.attached not having a property VRDeviceOrientation . Instead of: camera.inputs.attached.VRDeviceOrientation you can try using: camera.inputs.attached.deviceOrientation That seems to make the error go away. Does this solution work for you? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 25, 2017 Author Share Posted January 25, 2017 It's not my PG. I was researching the forum on VR cameras and I happened to fall on this PG and saw this error or the person said it worked. So maybe there is a bug now or things change in the engine Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2017 Share Posted January 26, 2017 Things changed (I think this PG was done during beta phases) eugenesia 1 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 26, 2017 Author Share Posted January 26, 2017 Ok 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.