This is not a programming question but a physics one. I was wondering if anyone has a link that good give me the math for two objects: one moving and the other intercepting. Specifically, I need to determine the vectors of the pursuing object when given the vectors of the object he is trying to pursue.
This is classic video game programming and in my instance it's supposed to be a football player running with the ball being chased by a tackler. The code I have now determines where the tackler should go at one particular instant, but does not project where he should be in order to lead the target. What happens is the tackler runs behind the ball carrier - he doesn't cut him off. It's like if a QB throws the ball to where his receiver is instead of in front of him; when the ball arrives the receiver is long gone.
I've been using trig functions, but this may be a calculus problem. I figure many programmers here must have attempted something similar and might be able to help me out.
Thanks!
