Maximum Escape Angle/Precise

From Robowiki
< Maximum Escape Angle
Revision as of 20:55, 28 November 2007 by AaronR (talk | contribs) (Creating page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GuessFactors.png
This article is a stub. You can help RoboWiki by expanding it.

Many of the best targeting algorithms, particularly GuessFactor Targeting, require the use of max escape angles. Although an absolute maximum escape angle can be calculated by Math.asin(8 / bulletSpeed) (as explained at Maximum Escape Angle), a true MEA can be restricted by walls and current heading and speed. As a result, the pixel-precision MEAs needed by advanced targeting algorithms can only be obtained through precise prediction. A typical method is to predict the farthest distances the enemy could travel perpendicularly left and right, assuming the enemy will use a wall smoothing algorithm to maximize their escape angle. Once the farthest points are determined, the max escape angles of the target are equal to the absolute values of the bearing offsets of these points.