1.1.1 • Published 7 years ago
three.orientation v1.1.1
three.orientation
Control three.js camera with device orientation API
usage
// create control:
var orientationControl = require('three.orientation')(camera);
// somewhere inside request animation frame:
orientationControl.update();
This module depends on THREE.js
being in a global scope
install
With npm do:
npm install three.orientation
license
MIT