three-controls
v1.0.1
Published
ThreeJS controls as standalone
Downloads
106
Maintainers
Readme
three-controls
ThreeJS controls as standalone
how to use
install
npm install three-controls --save
use
import * as ThreeControls from 'three-controls'
let orbit = new ThreeControls.OrbitControls(camera, domElement)
function render() {
orbit.update()
renderer.render(scene, camera)
requestAnimationFrame(render)
}
or you can use like this
import {OrbitControls} from 'three-controls'
let orbit = new OrbitControls(camera, domElement)
function render() {
orbit.update()
renderer.render(scene, camera)
requestAnimationFrame(render)
}