Guided missile problem

Hi everyone.

I am trying to make a missile that follows a moving object.
I use this code

transform.LookAt(target);
transform.Translate(transform.forward * speed * Time.DeltaTime);

I have the following problem…

When missile aproches enemy from the front it’s OK.
When missile goes from back, it aproaches the target slower than i expected (i expected the approach speed would be missilespedd-targetspeed because they move to the same direction).
Am i doing something wrong?

Thank you all

If both target and missile are moving in the same direction, then the missile is playing catch-up to the target and the relative speed will be slower. Your equation is right for approach speed, but you have to have your frame of reference right. Say your missile is flying at 30 and your target is going at 20, then your approach speed will be 30 - 20 = 10. But if your target is coming towards the missile at 20, then the approach speed will be 30 - (-20) = 50.

I found the problem.
The missile had a rigibody.
I found that rigibody was affect the speed and angle of the missile.
So i remove the rigibody.