pymunk is a wrapper around the 2d physics library Chipmunk, http://wiki.slembcke.net/main/published/Chipmunk
pymunk vision
Make 2d physics easy to include in your game :)
It is (or striving to be):
- 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 progam 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 (0.8.4) these points are at least partly fulfilled and visible if you use pymunk.
pymunk 0.8.4
A quickfix of pymunk has been released!
Changes from last release
- Fixed float infinity issue which made pymunk not work on python 2.5.
As before, the windows installer should work on both python 2.5 and python 2.6 However, I have also created and uploaded two msi installers (one for py2.5 and one for py2.6) to the downloads area (but they are not featured on the first page). Please try them out if you experience any problem with the normal windows installer.
pymunk 0.8.3
A bugfix release of pymunk has been released! (pymunk 0.8.3)
Changes from the last release:
- Removed dependency on msvcr90.dll
- Fixed Vec2d exception when used in callbacks
- Fixed -fPIC problem
- Added velocity and position update callbacks to Body.
- API documentation improvements
- Various minor fixes and code cleanups
The Poly constructor now automatically order the incoming vertices in the correct order unless the parameter auto_order_vertices is set to False (its True by default). You will gain a little performance in polygon creation if you change it to False, as long as you are sure your vertices are ordered in the right way.
Example scripts and documentation are bundled with the source release.
As before, the windows installer should work on both python 2.5 and python 2.6
pymunk 0.8.2
(removed..)
pymunk 0.8.1
(removed..)
pymunk 0.8
(removed..)
Documentation
See http://pymunk.googlecode.com/svn/tags/pymunk-0.8.4/docs/api/index.html for the API documentation of pymunk 0.8.4.
A snapshot of the latest svn version of the docs is located here: http://pymunk.googlecode.com/svn/trunk/docs/api/index.html
Support
Forum
Currently pymunk has no separate forum, but you can use the general Chipmunk forum at http://www.slembcke.net/forums/index.php Many issues are the same, like how to create a rag doll. If you have a pymunk specific question you can mark your post with [pymunk]
IRC
Pymunk has a irc channel, #pymunk at irc.freenode.org
You can mail me: vbxviblo.se (replace x with @)
Tutorial
(Not very updated, see the scripts in /examples) There is a new tutorial in the wiki area. It will walk you throu the slide and pinjoint demo included in the release. Go here to read it: SlideAndPinJointsExample
Screenshots from the included demos
From the contact demo, which paints red balls with big radius for big collisions, and small radius for small ones.
From the balls and lines demo. Static lines drawn by the mouse, balls added by mouseclick and growing balls when hoovering above them.
Displays a L shape with two joints, one pin joint in red and one slide joint in green. After a while the L will tip over and release the balls.