I've been trying another crazy eye idea. I want the eyes to be like antennas on an insect scanning the area in front of it. I'm halfway there, but I'm wondering if there are limitations to what can be calculated here, because the eyes use negative values for half of their possible positions and it might not be possible to use that in the custom labels here.
To properly see how it works so far you need to pause the simulation, set it to the slowest speed, click on the bot before you start the sim.
def anticlockwise 100
start
280 .eye1width store
190 .eye2width store
-24 .eye3width store
-16 .eye4width store
140 .eye5width store
-16 .eye6width store
-24 .eye7width store
190 .eye8width store
280 .eye9width store
stop
start
333 .eye1dir store
95 .eye2dir store
-95 .eye8dir store
-333 .eye9dir store
stop
'Eye 3 moves anticlockwise a short distance and then stops. When it stops it must mean that it's value is no longer below 70.
cond
*.anticlockwise 70 <
start
.eye3dir inc
.anticlockwise inc
stop
'If it's not below 70 it must be above 70, so why doesn't it move back again here?
cond
*.anticlockwise 70 >
start
.eye3dir dec
.anticlockwise dec
stop