Author Topic: Vegs falling off the screen  (Read 2514 times)

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Vegs falling off the screen
« on: May 16, 2006, 12:09:41 PM »
When using both vertical gravity and planet eaters in a non-toridial sim ...

... this happens:



The vegs fall off the screen into an area below the field

Here is a saved sim demonstrating the odd behavior:

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Vegs falling off the screen
« Reply #1 on: May 16, 2006, 12:47:45 PM »
It's an artifact from the way collisions with edges work.

A better idea might be to copy over the edge collisions in 2.5.  Basically, you multiply the vel.y part by -.9 and project the bot back into the world.