node package manager


fly around in voxel.js games


minecraft(TM) style double-tap jump button to go into fly mode, then use jump/crouch buttons to adjust altitude, and land if you hit the ground

npm install voxel-fly
var fly = require('voxel-fly')
var makeFly = fly(game)
// physicalObject is most likely going to be your [voxel-player]( 
// e.g.: 

require the module

Give it your game instance and it will return a function that you can use to make any physical object fly

physicalObject is most likely going to be your voxel-player

bindKeyEventsAutomatically is true by default, set it to false to bypass the double-tap keyboard bindings

If you chose not to bind key events at first you can bind them later to a specific element with this method