Kris Schnee wrote:does anyone know how to feed collision information back to the program outside PyODE?
That's pretty much what I do, except that I don't bother wrapping the objects; every time I add a geom, I assign it an "object" attribute which points to the game object. What about it isn't working? The only "gotcha" I've found for wrapping ODE/Pyrex objects is that you have to overload __new__ as well as __init__.
In one of my WIPs I'm using just the collision detection part of ODE to do something like this. I maintain a dict that maps geom objects back to the game objects they represent. Then I call the collide() method of my geom space with a callback that does the appropriate thing...
http://kschnee.xepher.net/pics/070329joust.jpg
Kris