DarwinBotsManual
Open the app EspañolES

.eye9dir

Turns eye 9 relative to its factory position (40 degrees to the right): positive to the left, negative to the right; 1256 is a full turn.

Facts

Address
529
Name
.eye9dir
Kind
Command: the bot writes it and the engine reads it and usually consumes it
Group
Eyes
Written by
Your DNA.
Read by
The engine, in the actions phase of every cycle, when it fills .eye9.
Cleared
Never: it stays as you left it.
Range
−32000 to 32000; only the remainder of dividing by 1256 counts, which is one full turn.
Mutations
picked as a store target

Shifts the direction of .eye9, which by default looks 40 degrees to the right of .aim. It is measured in the same units as .aim: a full turn is 1256, a half turn 628, and 10 degrees about 35. Positive values move the eye to the left and negative ones to the right. The eye stays attached to the bot: if the bot turns, the eye turns with it.

It is configuration: the engine reads it every cycle but never clears it, so writing it once is enough. Only the remainder of dividing by 1256 counts, with its sign: 1256 is the same as 0 and 1300 the same as 44. The change shows up in what the eye sees from the next cycle on.

The bot All Eyes by Spike43884 (in the Bestiary) opens all nine eyes in a fan to see almost everything around it; it sets this eye to -410, so it ends up looking about 157 degrees to the right:

cond
*.robage 0 =
start
-410 .eye9dir store
stop

To change how much the eye covers, use .eye9width. The other eyes and how they are laid out are covered in Eyes.