Wolfram Demonstrations: Source code
Throw off a Cliff