Skip to content

anvaka/three.fly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

three.fly

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

usage

// 1. Create fly controls:
// container is a DOM element where you want to receive input 
// e.g.: document.body
// THREE is a main namespace of three.js
var fly = require('three.fly');
var controls = fly(camera, container, THREE);

// 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

About

Three.js fly controls as common js module

Resources

License

Stars

Watchers

Forks

Packages

No packages published