Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Elite on May 16, 2006, 12:09:41 PM

Title: Vegs falling off the screen
Post by: Elite on May 16, 2006, 12:09:41 PM
When using both vertical gravity and planet eaters in a non-toridial sim ...

... this happens:

(http://img155.imageshack.us/img155/4692/bug27pj.th.jpg) (http://img155.imageshack.us/my.php?image=bug27pj.jpg)

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

Here is a saved sim demonstrating the odd behavior:
Title: Vegs falling off the screen
Post by: Numsgil 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.