three-controls
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i three-controls

Weekly Downloads

14

Version

1.0.1

License

MIT

Unpacked Size

168 kB

Total Files

28

Last publish

Collaborators

  • huangfengya