.trefvelmydx
How much faster than you the tied bot is moving toward your right.
Facts
- Address
- 441
- Name
.trefvelmydx- 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 projects the velocity of the tied bot onto your rightward axis and subtracts your
.veldx. 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
- About −23000 to 23000; in practice, much less
- Mutations
- picked as a read (
*)
It is the sideways component of the tied bot's relative velocity: its velocity projected onto your rightward axis, minus your own .veldx. Positive if it drifts away from you toward the right, negative if it drifts toward the left. .trefvelmysx is the same with its sign flipped, and .trefvelmyup is the forward component.
' Follows the tied bot's sideways movement
cond
*.numties 0 >
start
*.trefvelmydx .dx store
stopIf you write a negative value to .dx, the thrust goes to the left.