nagyistoce / tin-man

Automatically exported from code.google.com/p/tin-man
GNU General Public License v3.0
0 stars 0 forks source link

Agent code shouldn't be concerned with team side #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At half time, the players switch sides of the field.

It would be more convenient if agent implementations worked under the illusion 
that they were always defending the left hand goal, and TinMan flipped all 
vector values in the x-axis as required.

Exactly what vectors would be flipped needs to be researched.  This would have 
to happen to inbound and outbound vectors in global coordinates.

Also, would landmarks be inverted?

Original issue reported on code.google.com by drewnoakes on 2 May 2012 at 10:19

GoogleCodeExporter commented 9 years ago
Actually, team side is assigned when an agent connects to the simulator and is 
then not changed through the lifetime of that process.  In the case of 
competitions, agents are restarted at half time, which causes this behaviour.  
However for the first half an agent's team may appear on either side.

Original comment by drewnoakes on 2 May 2012 at 10:26