For the latest release announcement, check this thread: http://chipmunk-physics.net/forum/viewt ... f=6&t=1940
Today after much waiting pymunk 1.0.0 was released!
With this release pymunk has most features I wanted, follows the latest chipmunk version, has quite good api documentation and is fairly well tested and hopefully quite stable. As such I think it's about time the version is bumped to 1.0.0.
As this version is updated to include the new features in chipmunk, and also contain at least one breaking change it is not unlikely that it will break your code. On the other hand, now it has the newest callback system (see Space.add_collision_handler), new joints and other cool stuff that will make it easier and more fun to include 2d physics into your python program/game
Changes from the last release:
* Vec2d now uses radians instead of degrees for all default angle functions. This might break existing code!
* Upgraded to latest chipmunk. This means new system of callbacks and many other improvements
* Many unittests added.
* Better py3k compatibility (everything except for the setup script should work)
* Better 32/64 bit library handling
* and more
pymunk is a binding to chipmunk for use in python. (Big thanks for Chipmunk slembcke!) It puts a pythonic layer above chipmunk to make it easy to use for python programmers. You can now do stuff like:
Code: Select all
body = pymunk.Body(10,1000) shape = pymunk.Circle(body, 10, (0,0)) space.add(body, shape) # and also def pre_solve(space, arb): print arb.shapes return True space.add_collision_handler(0, 0, None, pre_solve, None, None)
* *Easy to use* It should be easy to use, no complicated stuff should be needed to add physics to your game/program.
* *"Pythonic"* It should not be visible that a c-library (chipmunk) is in the bottom, it should feel like a python library (no strange naming, OO, no memory handling and more)
* *Simple to build & install* You shouldnt need to have a zillion of libraries installed to make it install, or do a lot of command line trixs.
* *Multiplatform* Should work on both windows, nix and OSX.
* *Non-intrusive* It should not put restrictions on how you structure your program and not force you to use a special game loop, it should be possible to use with other libraries like pygame and pyglet.
I hope and believe that with the latest release these points are at least partly fulfilled and visible if you use pymunk.
pymunk (source/svn, some screenshots and the latest packed release) can be found here: http://code.google.com/p/pymunk/