Pick up and throw voxels in voxel.js.
// create a throwing thing and give it a copy of the gamevar pickupOrThrow = game;// on mouse down either pick up or throw a voxelwindow;
Or if you just want to throw your own item, like a rock:
var throwthis = game;var rock =mesh:size: 4collisionRadius: 4resting: false;window;
With npm do:
npm install voxel-throw
Use browserify to
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.