falling off a ledge gravity simulation -
10-18-2009, 06:11 PM
here is an example of the simulation
press space to jump
use the arrow keys to move
try to jump to the other building if you land on the block you drop 100 feet and if you make it to the other side you are still able to continue jumping back and forth please refer to the code to learn how to do this.
basically this is how it works
when you walk across without jumping you will be within 12 meters of the square and will drop when you jump you exceed that threshold just enough to be more than 12 meters away from the center of the box.
if you have any comments or questions, please feel free to leave them here so i can answer them (: