A slightly improved simulation of character movement, including gravity and friction on the character's movement. Feel free to remix or use any of the scripts in your own projects.