Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: bacillus on May 27, 2008, 04:06:23 AM

Title: How does body mass affect the final speed of a bot?
Post 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.)  
Title: How does body mass affect the final speed of a bot?
Post by: Peksa on May 27, 2008, 10:30:45 AM
8 .up store will work. I think that'll waste some energy though.

I haven't tested this, but following could work..

Code: [Select]
*.vel *.lastspeed !=
*.vel 0 != and
10 .up store
*.veldx .sx store
true
*.vel .lastspeed store
Title: How does body mass affect the final speed of a bot?
Post by: Numsgil on May 29, 2008, 01:51:25 PM
There is of course maxvel, which returns the maximum velocity the bot can attain...
Title: How does body mass affect the final speed of a bot?
Post by: Peksa on May 29, 2008, 02:38:43 PM
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.
Title: How does body mass affect the final speed of a bot?
Post by: bacillus on October 06, 2008, 09:26:45 PM
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.
Title: How does body mass affect the final speed of a bot?
Post by: Numsgil on October 06, 2008, 11:22:47 PM
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
Title: How does body mass affect the final speed of a bot?
Post by: bacillus on October 07, 2008, 12:08:13 AM
Thanks.