npm.io
1.0.3 • Published 8 years ago

threejs-orbit-controls

Licence
Unlicense
Version
1.0.3
Deps
1
Size
68 kB
Vulns
1
Weekly
0

Orbit Controls ES6

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

Install

npm i threejs-orbit-controls --save

Example

import OrbitControls from 'threejs-orbit-controls';

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