0.6.0 • Published 9 years ago

three-pointer-controls v0.6.0

Weekly downloads
54
License
MIT
Repository
github
Last release
9 years ago

three-pointer-controls

Navigate a three.js scene with pointer events

This is an implementation of orbit controls inspired by three-orbit-controls but with pointer events instead of mouse events. See test for an example.

Usage

NPM

PointerControls = require('three-pointer-controls')(THREE)

This module exports a function which accepts an instance of THREE, and returns an OrbitControls class. Use it to control one or several scenes by calling:

controls = new PointerControls()
controls.control(camera)
controls.listenTo(domElement)

or

controls = new PointerControls()
controls.control(camera).with(domElement)

Testing

Clone the repository, run npm install and npm test. Then open localhost:9966 to try out three-pointer-controls.

0.6.0

9 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago