Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: ikke on December 01, 2008, 09:56:49 AM

Title: robsize
Post by: ikke on December 01, 2008, 09:56:49 AM
Does the parameter Robsize in the code euqate to body in the program?
Title: robsize
Post by: Numsgil on December 01, 2008, 02:01:53 PM
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.
Title: robsize
Post by: abyaly on December 03, 2008, 07:47:27 PM
*.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.
Title: robsize
Post by: bacillus on December 03, 2008, 09:12:51 PM
cuberoot(0.75mass/pi)?
Just a guess, calculates radius from volume of bot.