# Calculating where to aim to hit a moving target

This topic is 3833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Ok so I've searched this site and couldn't find an answer. I also found the web and the best I've found so far was this: http://www.codeproject.com/KB/recipes/Missile_Guidance_System.aspx However that is really hard for me to understand. My goal is to have a way to calculate where to aim to hit a linear moving target that doesn't change its acceleration or velocity with a projectile that will take time to reach its mark, in other words no instantly moving bullets. I also don't want to have to loop through different time steps to finally find the angle I need to aim with. After all my searching and trying to understand I'm sure I'll need to learn the Quartic formula because all of the resources I've found have mentioned it. If anyone can point me to a place or can describe how to do it in a easy to understand way I would GREATLY appreciate it! Thanks [Edited by - Cthul on July 26, 2008 4:58:24 PM]

##### Share on other sites
Quote:
 ...where to aim to hit a linear moving target that does change its acceleration or velocity...
Did you by any chance mean 'doesn't change its acceleration or velocity'? Or is the above correct as written?

##### Share on other sites
I did mean 'doesn't'. It's been corrected.

##### Share on other sites
Well, your 'search-fu' must be a little off today, because there is a currently active thread on this topic in this very forum :) (In fact, at the moment it's right below yours.)

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 11
• 15
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
634151
• Total Posts
3015825
×