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
Add a camera rig to set the user height. look-controls is no longer responsible of implicitly setting the user height. It is up to the content creator to build a camera rig that sets the user height as
appropriate. The examples have been updated to reflect this change (fix#3315, #3118, #3051, #2487)
| touchEnabled | Whether to use touch controls in magic window mode. | true |
33
-
| 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 |
34
33
35
34
## Customizing look-controls
36
35
@@ -49,8 +48,7 @@ be left maintaining a wide array of flags.
49
48
50
49
The component lives within a Browserify/Webpack context so you'll need to
51
50
replace the `require` statements with A-Frame globals (e.g.,
52
-
`AFRAME.registerComponent`, `window.THREE`,
53
-
`AFRAME.constants.DEFAULT_CAMERA_HEIGHT`), and get rid of the `module.exports`.
51
+
`AFRAME.registerComponent`, `window.THREE`), and get rid of the `module.exports`.
0 commit comments