I'm trying to expand a Haversine-based spherical navigation library I've created for a computer game I'm developing. Currently, missiles "chase" their targets by simply computing the initial heading for the shortest great circle arc to the target, per frame; I'm trying to find a way to get them to "intercept" their target along the shortest possible arc instead.
The nearest I can get to this with Google is the intersection of two great circle arcs. My problem extends that somewhat with speed and time.
I'm trying to work out; given an object, at a given set of spherical coordinates, moving along a great circle arc with a current given compass bearing; compute, from another set of spherical coordinates, the initial bearing such that another object setting off from here with a given different speed will intercept the first object along the shortest possible great circle arc.
Layman's description: An aircraft is cruising around the world with a constant speed. You are a SAM site. Calculate the initial bearing your interceptor missile has to take in order to shoot it down by following the shortest possible path.
My own working so far is has been rubbish. The best I've done is come up with the obvious stipulation "They must end up in the same place, after travelling for the same amount of time", which applies to trivial 2D planar geometry.
Although I don't know what "the intersection of two great circle arcs" is, I think this problem needs differential equation which can compute the curve's length, but I didn't calculate that. If you want to know some algorithm of this type, you should ask in game-stackexchange, computer science, or computer graphics.
$(1)$ normal missile(or advanced homing missile which expect opponent's path)
The shortest path is perpendicular to line of aircraft. Then if both speed is same, he should shoot at 45 degree against the line.
$(2)$ pure homing missile
If aircraft and missile are line up on vertical or parallel line, they never can meet eternally. He must shoot faster than the time of 45 degree, because if the angle is less than 45 degree, even if missile go straight down, missile never meet. However even if it is faster than 45 degree, since the angle of aircraft and missile comes to 45 degree, finally both never can meet.
$(3)$ missile of great circle arc
This path can be nearer value of (1) by bigger circle arc.
Therefore $(1)>(3)>(2)$.