Builds on previous sketch but now uses the change in position to calculate the velocity and thus the rotation.