Offers Three.js Orbit Controls functionality for Ember 3D, an Ember Addon for using Three.js.
Orbit controls perform orbiting, dollying (zooming), and panning with mouse, mousewheel, touch, and arrow key support. Check out the official example.
Ensure you've installed Ember 3D:
ember install ember-3d
Then install Ember 3D Orbit Controls
ember install ember-3d-orbit-controls
Ember 3D Orbit Controls enables you to use the OrbitControlsInteractionMixin, which registers orbit controls as orbitControls on the scene component. You may also pass an options POJO which will be used to set up the controls.
// app/3d/scene-id/interactions/orbit-controls.js
import OrbitControlsInteractionMixin from 'ember-3d-orbit-controls/interactions/orbit-controls';
export default OrbitControlsInteractionMixin.extend({
options: {
enableZoom: false,
enablePan: false,
maxPolarAngle: Math.PI / 2
}
});For more information on available options, check out the Three.js code for Orbit Controls.