Use velocities instead of manually updating the x position