made velocity independent of framerate