Pymunk

Latest version: v6.11.1

Safety actively analyzes 714875 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

5.3.2

-------------------------

**Fixes ContactPointSet updating in Arbiter**

This release contains a fix for the ContactPointSet on Arbiters. With this fix
its possible to update the contacts during a collision callback, for example
to update the normal like in the breakout game example.

Changes:

- Fix Arbiter.contact_point_set

5.3.1

-------------------------

5.3.0

-------------------------

**Pickle and copy support!**

New in this release is pickle (save and load) and copy support. This has been
on my mind for a long time, and when I got a feature request for it on Github
by Rick-C-137 I had the final push to make it happen. See
`examples/copy_and_pickle.py
<https://github.com/viblo/pymunk/tree/master/examples/copy_and_pickle.py>`_
for an example.

The feature itself is very easy to use, pickle works just as expected, and copy
is a simple method call. However, be aware that support for pickle of Spaces
with callback functions depends on the pickle protocol version. The oldest
pickle protocol have limited capability to pickle functions, so to get maximum
functionality use the latest pickle protocol possible.

Changes:

- Pickle support. Most objects can be pickled and un-pickled.
- Copy support and method. Most objects now have a copy() function. Also the
standard library copy.deepcopy() function works as expected.
- Fixed bugs in BB.merge and other BB functions.
- Improved documentation and tests.
- New Kivy example (as mentioned in earlier news entry).

I hope you will like it!

5.2.0

-------------------------

**Customized compile for ARM / Android**

The main reason for this release is the ARM / Android cross compilation support
thanks to the possibility to override the ccompiler and linker. After this
release is out its possible to create a python-for-android build recipe for
Pymunk without patching the Pymunk code. It should also be easier to build for
other environments.

Changes

- Allow customization of the compilation of chipmunk by allowing overriding the
compiler and linker with the CC, CFLAGS, LD and LDFLAGS environment variables.
(usually you dont need this, but in some cases its useful)
- Fix sometimes broken Poly draw with pyglet_util.
- Add feature to let you set the mass of shapes and let Pymunk automatically
calculate the body mass and moment.
- Dont use separate library naming for 32 and 64 bit builds. (Should not have
any visible effect)

5.1.0

-------------------------

**A speedier Pymunk has been released!**

This release is made as follow up on the :doc:`benchmarks` done on

5.0

regressions in CPython. Turns out one big part in the change is how Vec2ds are
handled in the two versions. Pymunk 5.1 contains optimized code to help reduce
a big portion of this difference.

Changes

- Big performance increase compared to Pymunk 5.0 thanks to improved Vec2d
handling.
- Documentation improvements.
- Small change in the return type of Shape.point_query. Now it correctly
return a tuple of (distance, info) as is written in the docs.
- Split Poly.create_box into two methods, Poly.create_box and
Poly.create_box_bb to make it more clear what is happening.

I hope you will enjoy this new release!

Page 5 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.