A component for A-Frame VR that facilitates controlling entity rotation directly with captured mouse. Includes Core HMD Controls, so can be used as a drop in replacement to look-controls component.
Install.
npm install aframe-fps-look-componentRegister.
AFrame = require('aframe-core');
AFrame.registerComponent('fps-look-controls', require('aframe-fps-look-component').component);Use.
<a-scene>
<a-entity camera fps-look-controls></a-entity>
</a-scene>| Property | Description | Default Value |
|---|---|---|
| enabled | true | |
| sensitivity | 1 |