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

Re: [pygame] physics engine?



Heya!

It was really too bad that the gsoc project wasn't really finished.
It didn't need to be a full 2D physics engine like Chipmunk or Box2D,
but in it's current state it is lacking some basic, mandatory features
to be useful.

I think the collision part should be rewritten to be a part of the
PyGame standard collision library. This way you can have traditional
rect collisions, pixel based collision detection and vector based
testing all in one neet package for PyGame.

That collision library would also provide PyGame community with much
needed types for vectors, quats and the math surounding it.

As for the physics, if you can write a simple platformer it's
good enough.

Just my two cents. Also, for a good physics library check out
PyODE, it now features a 2D joint lock so you can go from 3D
to 2D without much effort.

/Peter

On 2009-06-19 (Fri) 11:57, René Dudfield wrote:
> On Fri, Jun 19, 2009 at 11:25 AM,
> machinimist@xxxxxxxxx<machinimist@xxxxxxxxx> wrote:
> > hi,
> >
> > what 2d physics engine would you recommend for using with pygame?
> >
> > what happened to the SOC physics project? is it finished? will it be
> > included in pygame?
> 
> 
> Unfortunately not much work has been done on that since the gsoc last
> year finished... and no one else has really picked it up.  It lives in
> pgreloaded now.  However I don't know of any games using it.  Perhaps
> if it got some users and a maintainer it might improve.  I think
> Marcus might have plans for it, but not sure what they are.  Perhaps
> it might get into pygame 1.9.1... but definitely not 1.9.0.
> 
> The main engines used by people are these two engines:
> 
> pybox2d
>   http://pygame.org/project/723/
>   http://code.google.com/p/pybox2d/
> 
> pymunk
>   http://pygame.org/project/780/
>   http://code.google.com/p/pymunk/
> 
> There are a number of successful games using them - and both projects
> have people working on them, and they seem well maintained.
> 
> 
> There's also py-lepton, which is a particle library... which does some
> particle physics stuff, but not really a physics library:
>   (no pygame project page)
>   http://code.google.com/p/py-lepton/
> 
> and finally pyode - which is more complex, and seems harder for people
> to finish games with, but does 3d stuff:
>   (no pygame project page)
>   http://pyode.sourceforge.net/
> 
> 
> Also have a look on the pygame website for physics stuff.  There's
> some simple stuff in there, which might be nice to learn from.
> http://pygame.org/tags/physics
> 
> 
> 
> cheers,