aframe-click-drag-component/examples/main.js

10 lines
300 B
JavaScript
Raw Normal View History

2015-12-18 23:36:21 +00:00
import aframe from 'aframe';
import extras from 'aframe-extras';
2016-10-03 09:37:56 +00:00
import keyboardControls from 'aframe-keyboard-controls';
2015-12-18 23:36:21 +00:00
import clickDragComponent from '../src/index';
extras.physics.registerAll(aframe);
2016-10-03 09:37:56 +00:00
aframe.registerComponent('keyboard-controls', keyboardControls);
2015-12-18 23:36:21 +00:00
clickDragComponent(aframe);