[Home]WallSmoothing/Introduction

Robo Home | WallSmoothing | Changes | Preferences | AllPages

Showing revision 1

In the image above, our robot (the small blue circle) is driving in a circle around an enemy (the red circle). The enemy is 250 units away. Our WallSmoothing algorithm is currently using a 150 unit distance, so we're going to pick destinations that lie somewhere on the outer dark blue circle. The bright green circle is our destination if we drive clockwise around our enemy, the darker green circle is our destination if we drive counterclockwise around our enemy. Since we're not yet near a wall, no smoothing is needed.

Now we've been driving around our enemy clockwise for a bit more time, and we're starting to approach a wall. The end of the black field is the side of the battlefield. The gray line represents the closest we can get to that wall, which is 18 units. Since we can't drive directly perpendicular to our opponent for 150 units any more, we choose a "smoothed" point which is closer to the enemy. In other words, we choose the intersection of the grey line and our 150 unit dark blue circle.


Robo Home | WallSmoothing | Changes | Preferences | AllPages
Edit revision 1 of this page | View other revisions | View current revision
Edited July 15, 2006 12:12 EST by David Alves (diff)
Search: