You are welcomed to check out similar applet at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=150.msg749#msg749]Motion of a Ping-Pong[/url]