-------------------------
**A new release of pymunk is here!**
This release is definitely a milestone, pymunk is now over 5 years old!
(first version was released in February 2008, for the pyweek competition)
In this release a number of improvements have been made to pymunk. It
includes debug drawing for pyglet (debug draw for pygame was introduced in
pymunk 3), an updated Chipmunk version with the resulting API adjustments,
more and better examples and overall polish as usual.
With the new Chipmunk version (6.2 beta), collision detection might behave a
little bit differently as it uses a different algorithm compared to earlier
versions. The new algorithm means that segments to segment collisions will be
detected now. If you have some segments that you dont want to collide then
you can use the sensor property, or a custom collision callback function.
To see the new pymunk.pyglet_util module in action check out the
pyglet_util_demo.py example. It has an interface similar to the pygame_util,
with a couple of changes because of differences between pyglet and pygame.
Some API additions and changes have been made. Its now legal to add and remove
objects such as bodies and shapes during the simulation step (for example in a
callback). The actual removal will be scheduled to occur as soon as the
simulation step is complete. Other changes are the possibility to change
body of a shape, to get the BB of a shape, and create a shape with empty body.
On a body you can now retrieve the shapes and constraints attached to it.
This release has been tested and runs on CPython 2.5, 2.6, 2.7, 3.3 and Pypy 2.1.
At least one run of the unit tests have been made on the following platforms:
32 bit CPython on Windows, 32 and 64 bit CPython on Linux, and 64 bit CPython
on OSX. Pypy 2.1 on one of the above platforms.
Changes
- New draw module to help with pyglet prototyping
- Updated Chipmunk version, with new collision detected code.
- Added, improved and fixed broken examples
- Possible to switch bodies on shapes
- Made it legal do add and remove bodies during a simulation step
- Added shapes and constraints properties to Body
- Possible to get BB of a Shape, and they now allow empty body in constructor
- Added radius property to Poly shapes
- Renamed Poly.get_points to get_vertices
- Renamed the Segment.a and Segment.b properties to unsafe_set
- Added example of using pyinstaller
- Fixed a number of bugs reported
- Improved docs in various places
- General polish and cleanup
I hope you will enjoy this new release!