Author Topic: Levitation Bug  (Read 2506 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Levitation Bug
« on: November 26, 2006, 09:18:17 PM »
This shouldn't be happening.  Watch the sim in 2.42.9e run for a while.  You'll see some bots on the left levitate up and then fix themselves.  They aren't doing anything that should make them levitate.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Levitation Bug
« Reply #1 on: November 27, 2006, 12:07:16 PM »
This was the coolest bug!

Basically, the impulse vector was ony geting zeroed each cycle in UpdatePostion() for unfixed bots, not for fixed bots.  Thus a fixed bot would accumulate gravitational force every cycle until it unfixed itself.  It would get released with a huge downward velocity, bouce off the shape and get levitated.

Fixed in 2.42.9f
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Levitation Bug
« Reply #2 on: November 27, 2006, 03:10:43 PM »
Whoo!  You better beleive the bugs I find are awesome!