Skip to content

huangfengya/three-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

ThreeJS controls as standalone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published