This source code allows you to display the path of a cannon ball, either instantly, or as an animation. You can set: Launch Angle Initial Speed Launch Height Gravity