Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 Re: Help Me ! » needed: formula for curved trajectory to hit specific target » 2005-10-08 23:01:01

Thanks guys for all your help. The equations work and I will post a link when the game is launched.

#2 Re: Help Me ! » needed: formula for curved trajectory to hit specific target » 2005-10-04 01:00:33

Thanks,

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?

#3 Help Me ! » needed: formula for curved trajectory to hit specific target » 2005-10-03 11:15:10

raffy
Replies: 20

Hi,
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!


Raffy

Board footer

Powered by FluxBB