Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: bacillus on May 27, 2008, 04:06:23 AM
-
I'm trying to figure out how to always make a bot go at maximum speed, but do not know how mass affects this, or if it can even be fixed by going beyond terminal velocity (I am assuming .up, .dn, .dx and .sx only supply a force, then f = ma applied, but am not 100% sure.)
-
8 .up store will work. I think that'll waste some energy though.
I haven't tested this, but following could work..
*.vel *.lastspeed !=
*.vel 0 != and
10 .up store
*.veldx .sx store
true
*.vel .lastspeed store
-
There is of course maxvel, which returns the maximum velocity the bot can attain...
-
Heh, of course. I think I read in an other thread about moving at full speed without maxvel, so I assumed this was about it.
-
Not exactly what I meant, more thinking if maximum velocity can still be reached if the bot is massive by putting *.maxvel *.body 20 div add .up store or something to that effect.
-
I believe maximum velocity is the same for all bots, irregardless of body. That wasn't always true, but I think it was a change for 2.4
-
Thanks.