Support a rotated camera

This commit is contained in:
Jess Telford 2016-10-03 20:37:56 +11:00
parent 06b4b885fe
commit 2589c0bcc1
4 changed files with 31 additions and 21 deletions

View file

@ -14,7 +14,7 @@
<a-sky color="#ECECEC"></a-sky>
<a-entity position="0 0 3.8">
<a-camera look-controls-enabled="false"></a-camera>
<a-camera look-controls-enabled="false" keyboard-controls="fpsMode: true"></a-camera>
</a-entity>
</a-scene>
</body>

View file

@ -1,7 +1,9 @@
import aframe from 'aframe';
import extras from 'aframe-extras';
import keyboardControls from 'aframe-keyboard-controls';
import clickDragComponent from '../src/index';
extras.physics.registerAll(aframe);
aframe.registerComponent('keyboard-controls', keyboardControls);
clickDragComponent(aframe);