.trefvelyourup
The forward velocity of the tied bot, measured from its own front: a copy of its .velup.
Facts
- Address
- 448
- Name
.trefvelyourup- 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
.veluppublished 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
- −32000 to 32000
- Mutations
- picked as a read (
*)
It is the .velup of the tied bot: how much it advances relative to where it points. It doesn't depend on your orientation or on your speed. For example, it has the same value if the other is moving toward you or away from you; what matters is that it is moving toward its own front.
The four trefvelyour* are copies of the other's velocities: .trefvelyourup, .trefvelyourdn, .trefvelyourdx and .trefvelyoursx. For the other's velocity as seen from you, use .trefvelmyup.
' If the tied bot is going in reverse, cell 50 is 1
cond
*.numties 0 >
*.trefvelyourup 0 <
start
1 50 store
stop