Code center > Darwinbots Program Source Code

robsize

(1/1)

ikke:
Does the parameter Robsize in the code euqate to body in the program?

Numsgil:
No, I don't think so.  It might be a hard coded constant, set to 120.  If it's a member variable, it represents the diameter (radius?) of the bot.

abyaly:
*.robsize is always 120, because the size of a robot used to be constant and the variable wasn't changed when robot size became variable. If you want to calculate the size of a robot based on body, there is a formula floating around here somewhere involving cube roots.

bacillus:
cuberoot(0.75mass/pi)?
Just a guess, calculates radius from volume of bot.

Navigation

[0] Message Index

Go to full version