voxel-move
Utility for rotation relative based movement in voxel.js. This probably totally already exists but I needed it faster than I could google for voxel-drone.
example
var move = // this would be our item in voxel.jsvar item = mesh: /* ... */ velocity: x: 0 y: 0 z: 0 // move it forward // rotate the item 90 degsitemmeshrotationy = MathPI / 180 * 90 // now! move forward in the direction the item is facing
All the methods are chainable. Only moves on XZ (maybe later if needed or if someone else cares we can add in Y).
left05 right05
release history
- 0.1.0 - initial release
license
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.