[Home]History of EscapeAreaMovement

Robo Home | Changes | Preferences | AllPages


Revision 5 . . May 17, 2003 8:29 EST by PEZ
Revision 4 . . May 17, 2003 8:24 EST by PEZ
Revision 3 . . May 17, 2003 3:15 EST by David Alves
  

Difference (from prior major revision) (author diff)

Changed: 7c7,9
That's what I did at first and why I ever bothered with drawing that EscapeArea... But it wasn't good since the EscapeArea is shaped like an hour glass at a right angle from the gunning robot with its waist where the target robot is. That makes a random point inside the area very often end up at the far ends of the EscapeArea which makes for a predictable movement. Now I instead pick a random angle between maxAngle and minAngle. If I had done it today I would probably have used a Line2D instead of an Area. You can imagine that I realy wanted to get RobocodeGLV014 to work on my machine while I experimiented with this EscapeArea business, can't you? =) -- PEZ
That's what I did at first and why I ever bothered with drawing that EscapeArea... But it wasn't good since the EscapeArea is shaped like an hour glass at a right angle from the gunning robot with its waist where the target robot is. That makes a random point inside the area very often end up at the far ends of the EscapeArea which makes for a predictable movement. Now I instead pick a random angle between maxAngle and minAngle. If I had done it today I would probably have used a Line2D instead of an Area. You can imagine that I realy wanted to get RobocodeGLV014 to work on my machine while I experimiented with this EscapeArea business, can't you? =) -- PEZ

A good thing with this movement is that since the EscapeArea is cropped by the battle field I get WallAvoidance as a bi product. -- PEZ

Robo Home | Changes | Preferences | AllPages
Search: