Original Post
What I'm trying to do is find where to, for example, shoot in order to hit a moving target. A solution may not always exist of course. I did a search on the forum and found a solution but i didn't understand his math or what it was he was calculating having variables called: a, b, c and d. The formula that i have is pretty simple, except that there's two unknowns and i don't know how to break em out, solve the equation in other words. Formula: targetPos - projectilePos + targetDir * time = projectileDir * projectileSpeed * time The variables are vectors except for the time scalar. The length of the projectileDir is 1 in the formula if the time variable was correctly chosen. The problem is i don't want to have to increment the time variable and check the length of the projectileDir to see if it's equal to about 1, and if not continue to increment and check. What my limited math skills won't allow is for me to somehow tell the formula that the |projectileDir| has to be 1 or the projectileSpeed if we want to move it out of the equation. Please help me, the search result i mentioned above refers to this post: http://www.gamedev.net/community/forums/topic.asp?topic_id=122528