Sync camera rotation and position with query params or network
Demo: https://ember-aframe-camera-extras.netlify.com
Rotation doesn't work in A-Frame 0.8 because of https://stackoverflow.com/questions/52815449/incorrent-orientation-with-initial-camera-rotation-in-aframe-0-8
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-aframe-camera-extras
Add this to your route:
import Ember from 'ember';
import QueryParamsRouteMixin from 'ember-aframe-camera-extras/mixins/query-params-route';
export default Ember.Route.extend(QueryParamsRouteMixin, {
});
and this to your controller:
import Ember from 'ember';
import QueryParamsControllerMixin from 'ember-aframe-camera-extras/mixins/query-params-controller';
export default Ember.Controller.extend(QueryParamsControllerMixin, {
});
and this to your camera component:
import ACamera from 'ember-aframe/components/a-camera';
import ComponentActionsMixin from 'ember-aframe-camera-extras/mixins/component-actions';
export default ACamera.extend(ComponentActionsMixin, {
});
Then, you can customize the actions in your template:
See the Contributing guide for details.
This project is licensed under the MIT License.