edj-boston/simple-mesh — pull request #1 by Timmehs (2014-12-31 21:21:42+00:00)
Title: Add velocity

Added a simple velocity property to SimpleMesh object.
Added a method shiftOrigin() which updates origin according to velocity.
Added a call to shiftOrigin() from within SimpleMesh#draw().
Add commented out velocity demonstration lines 34-35 in basic.html.

Note: It occurred to me that linear velocity would be about as common of a need for SimpleMesh objects as the rotational velocity provided in the theta property (it was for my asteroids game certainly), so here is a simple working implementation of that.