Artificial intelligent assistant

How to calculate angle for a rocket trying to hit another rocket I have a rocket A that has a constant velocity and a direction. I have another rocket $B$ that has a constant velocity and a starting angle. I want to calculate the angle for the rocket $B$ so that with the calculated angle it would eventually hit the A rocket. I realize the angle would be different at every moment. And thus I would recalculate it on every moment in the simulation. Where would I even start? What are the common methods to look at?

The easy way of doing this is to draw a picture showing the initial positions, with a line, the "initial line" joining the two points. Now draw arrows from the endpoints so that the first rocket with speed $u$ makes angle $\alpha$ with the initial line. The second rocket has speed $v$ and makes unknown angle $\beta$ with the initial line.

Then the condition for interception is $$u\sin\alpha=v\sin\beta$$ from which you can calculate $\beta$

A nice pay-off is that you can also easily calculate the time to interception, if $d$ is the initial distance between them, as $$t=\frac{d}{u\cos\alpha+v\cos\beta}$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1e432181cc4a583b95f2fe9ca9471426