there is a similar physics applet here
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=730.msg2703#msg2703
[img]http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=730.0;attach=360;image[/img]