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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    55
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    55
  • 1.0.0
    0

Package Sidebar

Install

npm i three-controls

Weekly Downloads

55

Version

1.0.1

License

MIT

Unpacked Size

168 kB

Total Files

28

Last publish

Collaborators

  • huangfengya