This is a huge help. What I really need to know is...
If I have a fixed point that I want my projectile to hit, and I can set it's angle when it launches and I know the co-ordinates of the target, what is the equation to ensure the projectile hits it.
There is no wind resistence or acceleration, just a continual x velocity and a y velocity that curves.
If I can hit it in a straight line easily enough, why can't I distort the straight line path so that it curves higher than the target initially and then curves back down to hit it?
I'm building a game based on tank wars.
The enemy tank ('computer') knows where the player's tank is, and the distance and the direction it has to fire to hit the player's tank in a straight line.
I want the 'computer's' tank to be able to fire at the player's tank and hit it, but for the missile to move on a curved path - not a straight line.
Can anyone provide me with a foolproof and ideally simple formula for this?
I figure that because I know the average velocity surely I can find a formula that creates a curved path based on the given velocity so that the curved path and straight path intersect at the target at the same time, but it appears to be beyond me.
For anyone interested, I'm building it in Flash.
Thanks for your help and for saving my brain!