Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 354 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 354 Bytes

Orbit Controls ES6

Little update to Orbit Controls from three.js to support ES6 modules

Install

npm i orbit-controls-es6 --save

Example

import OrbitControls from 'orbit-controls-es6';

const controls = new OrbitControls(camera, renderer.domElement);
controls.enabled = true;
controls.maxDistance = 1500;
controls.minDistance = 0;