[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pixel-perfect physics?
Has anyone had experience using pixel-perfect collision detection with a
2d physics engine? I've looked into pymunk, but that seems to have
baked-in collision detection so I don't see how to do it. ODE has
rudimentary python bindings and has separate collision detection, but
it's intended for 3d and the 2d support hasn't been added to the python
port yet. There's the GSOC pygame physics project, but I don't see docs
for that and can't tell if it would be suitable.
Also, as far as doing the collision detection, AFAICT there isn't a way
to rotate a mask, or to do collision detection on rotated objects. Are
there plans for something like this, or am I stuck with using an image,
rotating it with the transform package and then using Mask.from_surface?
Thanks.
--Mike