From: Ethan Glasser-C. <gl...@cs...> - 2007-06-13 22:43:11
|
Sorry Chris for the duplicate mail.. Chris Spencer wrote: > 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. When I run this script, I get a huge amount of output, including a huge number of lines like this: Exception exceptions.ValueError: 'Non-placeable geoms do not have a position.' in 'ode.collide_callback' ignored However, I think I understand what you did wrong. Your error is "in" the pygame drawing code. The position of a geom is always the center of that geom. You got this right for your circles, but wrong for your boxes. Attached is a patch which should draw boxes correctly. There's 400 lines of source here. In the future, please give a simpler reproduction case! Ethan |