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
PointerControls = 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 = controlscontrols
or
controls = controls
Testing
Clone the repository, run npm install
and npm test
. Then open
localhost:9966
to try out three-pointer-controls.