Support a rotated camera
This commit is contained in:
parent
06b4b885fe
commit
2589c0bcc1
4 changed files with 31 additions and 21 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue