Author Topic: How does body mass affect the final speed of a bot?  (Read 4220 times)

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
How does body mass affect the final speed of a bot?
« 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.)  
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #1 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

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #2 on: May 29, 2008, 01:51:25 PM »
There is of course maxvel, which returns the maximum velocity the bot can attain...

Offline Peksa

  • Bot Destroyer
  • ***
  • Posts: 118
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #3 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.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #4 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.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #5 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

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
How does body mass affect the final speed of a bot?
« Reply #6 on: October 07, 2008, 12:08:13 AM »
Thanks.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan