Maximum Escape Angle/Precise

From Robowiki
< Maximum Escape Angle
Revision as of 00:16, 13 December 2007 by AaronR (talk | contribs) (Modifying the image's caption)
Jump to navigation Jump to search
A precise predicted maximum escape angle. Note that the counterclockwise angle is shorter than the clockwise angle because of the wall blocking the robot's path.
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.