Skip to content

anvaka/three.orientation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Control three.js camera with device orientation API

Resources

License

Stars

Watchers

Forks

Packages

No packages published