Author Topic: Wide eyes can't see shapes RESOLVED 2.43w  (Read 2812 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Wide eyes can't see shapes RESOLVED 2.43w
« on: December 16, 2007, 02:03:09 PM »
Bot's can't see shapes when neither of the edges of the eye intersect the shape.
« Last Edit: December 21, 2007, 09:35:45 PM by EricL »
Many beers....

Offline MacadamiaNuts

  • Bot Destroyer
  • ***
  • Posts: 273
    • View Profile
Wide eyes can't see shapes RESOLVED 2.43w
« Reply #1 on: December 16, 2007, 02:15:01 PM »
I knew that one. But there's a good enough alternative code to dodge them if the bot uses the omnieye:

Code: [Select]
cond
*.edge 0 =
*.eye6 *.eye5 >
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 > or
start
*.aim 157 add .setaim store
stop
 
cond
*.edge 0 =
*.eye1 *.eye5 >
*.eye2 *.eye5 > or
*.eye3 *.eye5 > or
*.eye4 *.eye5 > or
start
*.aim 157 sub .setaim store
stop

The shape won't be seen by eye5 if eye5 is wider than half circle and it's in front of the bot, yet lateral eyes will see it.

You fix that, you break LF6, bro.
Sometimes you win, and sometimes you lose...

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Wide eyes can't see shapes RESOLVED 2.43w
« Reply #2 on: December 16, 2007, 02:29:31 PM »
It shouldn't break him, just obviate some of his DNA.

This can actually impact bots with eye widths of 90 degrees or even less when they are off a shape corner.  Going to take me some time to make sure this is right - the code is tricky - but it's worth fixing before I tackle shape burrowing.  Not much good letting bots dig into shapes if they can't see the details of what they are doing...
Many beers....