[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Physics, collision detection etc?



Nirav Patel wrote:

If the polygons are Surfaces or can be turned into Surfaces, they can
be turned into Masks to do pixel collision.

On Tue, Oct 7, 2008 at 11:21 AM, Peter Gebauer
<peter.gebauer@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Yep, but as I said, I need to find colliding polygons, not pixels.

Pixel collision isn't suitable for all purposes,
e.g. if you need to find contact normals for
physics calculations.

--
Greg