Results 1 to 3 of 3

Thread: Intercept Code Physics

  1. #1

    Thread Starter
    Hyperactive Member neef's Avatar
    Join Date
    Dec 2001
    Location
    Boston
    Posts
    311

    Intercept Code Physics

    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!
    Intermediate Level Programmer Extraordinaire

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member neef's Avatar
    Join Date
    Dec 2001
    Location
    Boston
    Posts
    311

    Re: Intercept Code Physics

    Thanks. This is very helpful.
    Intermediate Level Programmer Extraordinaire

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width