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).
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.