voxel-throw
Pick up and throw voxels in voxel.js.
example
// 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: 4 4 4 color:0x333333 size: 4 collisionRadius: 4 resting: false; window;
install
With npm do:
npm install voxel-throw
Use browserify to require('voxel-throw')
.
release history
- 0.2.0 - Updates for voxel-engine@0.10.0 (thanks @HowlingEverett!)
- 0.1.1 - ability to override the item thrown
- 0.1.0 - initial release
license
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.