Posted by: sloanjh
« on: April 04, 2009, 06:45:10 PM »Quote from: "Steve Walmsley"
There is some code that should do that and it has been generally working in my game, although it works best when one fleet is actually heading for the other so I can calculate closing speed and sensor ranges. With two fleets that are on tangential courses, figuring out the point at which one may enter the sensor range of the other is fairly difficult.
In both passes, I was headed right for the precursors, i.e. we were on reciprocal headings. I suspect that one or more of the following conditions that was true in my case might be fooling your code:
1) Precursors were parked - unless the Precursors have planetary sensors, then they were probably just sitting there (albeit with a speed reading of 5500 or so km/s).
2) Player (as opposed to NPR) race was the one doing the moving - maybe your code is being more careful for NPRs than for players.
John