This demo visualizes the mathematics of intercepting a moving target. The blue circle represents a target moving in a straight line at constant velocity, and the red circle is your projectile launcher.
The green dotted line shows the calculated trajectory to intercept the target. The visualization panel shows the actual equations being used to determine the perfect velocity for interception.