From: Chris S. <chr...@gm...> - 2007-06-13 21:15:52
|
I think I've found a problem with collision detection. Attached is a slightly modified version of the script I posted yesterday. When you run it, you'll see two circles to the left and right and a square in the center. Gravity will cause the two circles to fall downward, but the square has no body, and only serves to detect collisions. When a circle contacts the square, it will turn blue. As you can see, even those the circles never visibly come in contact with the square, PyODE is still registering collisions with the left circle. It's almost like PyODE thinks the square is positioned at (0,0), even though geombox.getPosition() confirms it's positioned in the center of the screen. At first I thought this was a problem with my PyGame drawing routine, but I can't find any errors. Can anyone else confirm problems with PyODE detecting collisions with bodiless geoms? Is there any way to fix this? Thanks, Chris |