Look Controls
Note: This documentation is for the old 0.1.0 version of A-Frame. Check out the documentation for the current 1.5.0 version
The look-controls
component defines the following behavior of an entity:
- Track the rotation of a VR headset.
- Rotate when the mouse is clicked and dragged.
- Rotate when a touchscreen is tapped and dragged.
Notice that look-controls
acts upon the VR headset, mouse, and touchscreen inputs. A-Frame controls are grouped together based upon configuration and behavior rather than by device.
The look-controls
component is generally meant to be registered alongside the camera
component.
<a-entity camera look-controls wasd-controls></a-entity> |
Property | Description | Default Value |
---|---|---|
enabled | Whether look controls are enabled. | true |