DarwinBotsManual
Open the app EspañolES

.tieang2

Angle of a multicellular bot's second tie relative to the way the bot points (0 to 1256); writing it sets that angle.

Facts

Address
481
Name
.tieang2
Kind
Input and output: both the bot and the engine write it
Group
Ties
Written by
Your DNA and the engine, as in .tieang1, for the second tie.
Cleared
The engine rewrites it every cycle, under the same conditions as .tieang1.
Range
0 to 1256
Mutations
picked as a read (*) and as a store target

It works the same as .tieang1, but for the bot's second tie, counting from the oldest one it has left (if an earlier one breaks, this one shifts up a slot). It only acts if the bot is multicellular (.multi) and that tie is stiffened; otherwise, the engine doesn't touch the cell. It doesn't touch it either if .tienum and .tiepres are both 0.

When read, it gives the direction of the partner as seen from the bot, from 0 to 1256, measured before the engine moves the bots. When written with store or another two-operand store, it sets that tie's angle as .fixang would, without picking it with .tienum. With inc or dec the tie doesn't find out.

' set the second tie to a quarter turn
cond
*.multi 1 =
start
314 .tieang2 store
stop

The length of this tie is read and set with .tielen2.