Maximum Escape Angle/Precise

From Robowiki
< Maximum Escape Angle
Revision as of 21:05, 12 December 2007 by Chase-san (talk | contribs) (Updating image to use built in wiki-frame)
Jump to navigation Jump to search
The path of a precise predition.
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.