[b]may it what you ask this is a simple projectile motion [/b]
Please check [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=382.0]projectile motion[/url]  :)