three.fly

v0.1.6
Three.js fly controls as common js module
threejs controls input mouse 3d

three.fly

This is adoptation of three.js FlyControls to common js module, with major rewrite of internal structure.

usage

// 1. Create fly controls:
var fly = require('three.fly');
var controls = fly(camera);

// 2. Inside your update scene loop (e.g. inside requestAnimationFrame()):
controls.update(1); // `1` is time delta.

install

With npm do:

npm install three.fly

license

MIT

npm i three.fly

Metadata

  • MIT
  • Whatever
  • Andrei Kashcha
  • released 7/6/2015

Downloads

Maintainers