You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify code that handles the camera pose in VR. With the removal of VREffect / VRControls the camera pose udpate is entirely managed by THREE. VRManager falls back to a default 1.6m height when the
VRDevice does not have positional tracking or stageParameters data. One can position the camera in 2D mode. When entering VR the value will be stored and restore upon exiting VR mode.
(fix#3315#3118#3051#2487)
| touchEnabled | Whether to use touch controls in magic window mode. | true |
35
35
| pointerLockEnabled | Whether to hide the cursor using the [Pointer Lock API][pointer-lock-api]. | true |
36
-
| userHeight | Height offset to add to the camera when *not* in VR mode so the camera is not on ground level. The default camera that A-Frame injects or the `<a-camera>` primitive sets this to 1.6 meters. But note the default camera component alone (`<a-entity camera>`) defaults this to 0. | 0 |
37
36
38
37
## Customizing look-controls
39
38
@@ -52,8 +51,7 @@ be left maintaining a wide array of flags.
52
51
53
52
The component lives within a Browserify/Webpack context so you'll need to
54
53
replace the `require` statements with A-Frame globals (e.g.,
55
-
`AFRAME.registerComponent`, `window.THREE`,
56
-
`AFRAME.constants.DEFAULT_CAMERA_HEIGHT`), and get rid of the `module.exports`.
54
+
`AFRAME.registerComponent`, `window.THREE`), and get rid of the `module.exports`.
0 commit comments