DarwinBotsManual
Open the app EspañolES

.refvelsx

How fast what you are looking at is moving to your left: it is .refveldx with the sign flipped.

Facts

Address
696
Name
.refvelsx
Kind
Sense: the engine writes it for the DNA to read
Group
What it sees (ref*)
Written by
The engine, in the actions phase of every cycle: it is .refveldx with the sign flipped, positive if what you see is moving off to your left. Also on colliding with a bot. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
−32000 to 32000.
Note
In the original DarwinBots it was always 0. The port fixed it.
Mutations
picked as a read (*)

.refvelsx is .refveldx with the sign flipped: positive when what you see is moving to your left. It is to .refveldx what .sx is to .dx.

' it's slipping away on the left: turn that way
cond
*.eye5 0 >
*.refvelsx 10 >
start
20 .aimsx store
stop

If you don't see anything, it is 0.