Darwinbots Forum
Code center => Darwinbots Program Source Code => Topic started by: ikke on December 01, 2008, 09:56:49 AM
-
Does the parameter Robsize in the code euqate to body in the program?
-
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.
-
*.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.
-
cuberoot(0.75mass/pi)?
Just a guess, calculates radius from volume of bot.