Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: abyaly on May 19, 2006, 12:02:33 PM

Title: Multibot orientation
Post by: abyaly on May 19, 2006, 12:02:33 PM
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?
Title: Multibot orientation
Post by: Numsgil on May 19, 2006, 12:46:57 PM
I'm not aware of this behavior.  In what ways are they different?
Title: Multibot orientation
Post by: abyaly on May 20, 2006, 10:53:29 AM
Quote from: Numsgil
I'm not aware of this behavior.  In what ways are they different?
I have a twobot where both bots face away from each other. It contains the following gene:
Where *.tmemloc is .eye5
Code: [Select]
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
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?  
Title: Multibot orientation
Post by: EricL on May 20, 2006, 11:15:53 AM
Any chance you could post a sim?
Title: Multibot orientation
Post by: Numsgil on May 20, 2006, 11:22:16 AM
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.
Title: Multibot orientation
Post by: abyaly on May 20, 2006, 11:31:11 AM
Quote from: 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.
Does something aside from body, energy or shell have an effect on mass?


*edit - one sec. playing with masses

This behavior seems to continue with matching masses. im going to post a sim in a moment




This is very strange. Before I saved the sim, it continued, but when I loaded it again it stopped Oo
How often does it update mass?
Title: Multibot orientation
Post by: Numsgil on May 20, 2006, 12:57:10 PM
Mass should be updated every time a bots mass changes and the simulation needs to new mass.  In practice this might just be once a cycle, I'm not sure.