Hi, this is one that has been giving me a headache. If anyone knows what it's called and I've missed the post please just tell me the name, but here's the problem anyway.
Here's the simplified version.
There's a slow target object moving through space at a randomly created but constant speed in a straight line.
I have an 'smartcannon' that will fire a projectile at this object whenever the player presses a button. The projectiles always go the same speed and in a straight line.
I want the projectiles to always hit these targets, but to do so only by changing the angle that it is fired at.
I've been trying to work out the Trig to predict a line ahead of the target and picking where the projectile will need to intersect to hit it but both the distances and times scale together.
I know the distance between starting points once the player hits the fire button and know they have to hit at the same time (given distance = time * speed)
Also I'm *really* trying not to give up and use point defense lasers or heat seeking missiles.