.trefvelscalar
The speed of the tied bot, without direction: a copy of its .velscalar.
Facts
- Address
- 444
- Name
.trefvelscalar- Kind
- Sense: the engine writes it for the DNA to read
- Group
- What it feels through a tie (tref*)
- Written by
- The engine, in the forces and collisions phase: it copies the
.velscalarpublished by the tied bot. You read it in the next cycle. - Cleared
- The engine, when you run out of ties or don't have the tie that
.readtieasks for. - Range
- 0 to 32000
- Mutations
- picked as a read (
*)
It is the .velscalar of the tied bot: how fast it moves, regardless of where it is heading. It is not a relative velocity: yours isn't subtracted from it and it doesn't depend on where you point. It arrives with the same delay as .trefxpos, one cycle behind what the partner reads about itself.
It's useful for knowing whether the other end of the tie is still or on the move. To know where it is heading relative to you, use .trefvelmyup and .trefvelmydx.
' If the tied bot is still, cell 50 is 1
cond
*.numties 0 >
*.trefvelscalar 0 =
start
1 50 store
stop