Bots and Simulations > DNA - General
A lazy turner(turning gene)
EricL:
--- Quote from: Henk ---I thought .readtie was required to use the tref commands?
--- End quote ---
The autopopulate beginning in 2.42.3. See #10 here.
Henk:
Ah ok, thanks
PurpleYouko:
--- Quote from: Welwordion ---Well in my situation they tend to rotate(with the tie) around each other while their eyes stay in the same direction, so when they made a 180 degree rotation their eyes face each other, in this case they should see each other and turn away, but they do not.( oh and could someone answer my birthtie topic in bugs and fixes?)
Simplified they should turn away every time they see each other.
--- End quote ---
The reason for this is that once the tie has stiffened, you cannot rotate relative to it by using normal rotation commands
You gotta set .tieang or tiang1 if you want the robots to face away from each other. You can't rely on any rotations prior to the tie hardening, to set the angle correctly. Use something like..
--- Code: ---cond
*.multi 1 =
start
628 .tieang1 store
stop
--- End code ---
That will set the angle from the eye to the tie at exactly half a circle as soon as the bot becomes a part of an MB (ie. when the tie hardens after 20 cycles)
You can even add a tag of some sort so that the gene doesn't get activated on every cycle.
Welwordion:
hmm does not work, they do not turn away from each other and I found out they keep rotating and rotating on and on,so this effect is not by intiasl inertia.
EricL:
--- Quote from: Welwordion ---hmm does not work, they do not turn away from each other and I found out they keep rotating and rotating on and on,so this effect is not by intiasl inertia.
--- End quote ---
Ties don't stiffen and lock their angles (as they should) in the 2.4 fork prior to the as yet unreleased 2.42.4 which is why they keep rotating in the version you are using.
They don't turn away from each other becuase of the trefvar issue above.
All this will be fixed in 2.42.4 which hopefully I can release later today.
Navigation
[0] Message Index
[*] Previous page
Go to full version