You are welcomed to check out  [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2709.msg9899;topicseen#msg9899]Elastic 1D collision inquiry[/url]