Recent content by The Guardian

  1. T

    Finding an interception point?

    ... so t is mostly dependent on the actual velocities of the two objects and the angle has very very little effect, right? If I use c=240, v1 = 20, v2 = 100 and fi=10° I get ~2.45 seconds, but I get the same if I set fi=40°. On the other hand with fi at 40, I do not have a legal value with which...
  2. T

    Finding an interception point?

    Cool thanks! I don't really need to speed it up I think it'll run fine, but out of curiosity how would you simplify that given that you don't know v1, v2, c, or the angle at compile time, only at run-time?
  3. T

    Finding an interception point?

    OK, so if I plug those lengths in and then run it through the quadratic equation I can solve for t right? t = ( -2 * v1 * Cos(fi) +/- sqrt( (2 * v1 * Cos(fi))2 - 4 * (v12 - v22) * c2) ) / 2 * (v12 - v22) Look right?
  4. T

    Finding an interception point?

    Yes I suppose if I know the angle I can figure out the point of interception. And of course there is the possibility that it can't be intercepted. I wasn't really sure how you were using the variables so I drew a diagram in Paint. Point s is the starting point of the second object. Point p...
  5. T

    Finding an interception point?

    Sorry I wasn't sure which forum exactly to put this into. I'm writing a computer game, and I have an object departing from 0,0 on a 2D plane with known and constant velocity and slope. X and Y will always be positive. I also have a point on that plane with different but known (and...
Back
Top