Bots and Simulations > DNA - General

Multibot orientation

(1/2) > >>

abyaly:
I've noticed that when a bot is part of a multibot, the directions that .up .dn .sx and .dx accelerate are different from what they usually are. How is this orientation decided and how can I alter it?

Numsgil:
I'm not aware of this behavior.  In what ways are they different?

abyaly:

--- Quote from: Numsgil ---I'm not aware of this behavior.  In what ways are they different?
--- End quote ---
I have a twobot where both bots face away from each other. It contains the following gene:
Where *.tmemloc is .eye5

--- Code: ---cond
*.eye5 0 >
*.eye5 30 <
*.eye5 *.tmemval >
*.refeye *.myeye !=
*.tieval 0 =
*.mult_i 1 =
start
*.refvelup 10 add 10 ceil .up store
.dn .tieloc store
*.up -1 mult .tieval store
stop
--- End code ---
So it looks like this should prevent the bot from going anywhere, since the bot's .up is directly opposed by his partner's .dn
But instead, what happens is that when the younger bot in the pair sees food, the MB moves toward it, but if the older bot in the pair sees food, the MB moves away from it. Do you know why this is happening?  

EricL:
Any chance you could post a sim?

Numsgil:
Are the bots different masses?  Maybe it has to do with inertia some how.  Try getting the bots to be the same mass and see if that makes a difference.

Navigation

[0] Message Index

[#] Next page

Go to full version