Deciding if the moving target will be hit is determined at run time versus at compile time as done for the stationary targets. However, we use the same conditions for the moving target as for a stationary target. In particular, we compute the range of angles for which the target will be in the path of the projectile. In order to do this,
we stop the motion of the moving target when the projectile is fired and at that moment compute the range of angles. The method for computing the range is the same as for a stationary target. See the example for stationary targets to review this method.