Pymunk

Latest version: v6.11.1

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

Scan your dependencies

Page 2 of 8

6.8.0

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

**Spring improvements**

This release makes the max force property on the two spring constraints work
as expected (previously it did not have any effect). It is also possible to
fully override the force/torque calculation of the springs with new callback.
Apart from this a collection of fixes in the underlying Chipmunk2D library
has been added. Finally, it's now possible to create static bodies with
constraints between them, and then change the bodies to dynamic to "start"
simulation of them.

Changes:

- Fix for 2 static bodies that are changed to dynamic and are attached to
constraints
- Updated the fork of Chipmunk2D used by Pymunk, fixing a number of issues,
including maxForce on Spring constraints.
- Added callback functions for DampedSpring and DampedRotarySpring to allow
customized force/torque calculations.

6.7.0

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

**Batch API can set body properties**

This release expands the experimental Batch API introduced in Pymunk 6.6.0.
It now comes with functions to efficiently set properties on the body such as
velocity. Similar to the previous API the new API reduces overhead of the
Python / C bridge, but also makes it very easy to use for example Numpy to
perform calculations over many bodies. The existing planet.py demo has been
updated to showcase the new Batch API and easily toggle between batch / no
batch to see the difference in performance.

Changes:

- Add set body function to pymunk.batch
- Fix crash with sensor shapes in pymunk.batch
- Improved types
- New interactive example to show collisions
- Fix constraints of bodies that change type

6.6.0

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

**Experimental Batch API**

This release adds a (experimental) batch API that can be used to efficiently
get body properties such as positions, and collision data for all bodies /
collisions in a space in one call. This way the overhead of calling the
underlying c library (Chipmunk2D) is minimized, enabling a massive speedup
in some cases.

Changes:

- New pymunk.batch module with batch API.
- Batch Api benchmark
- Batch version of colors.py example
- Improved types
- Improve build/packaging

6.5.2

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

**Python 3.12**

This is a minor release mainly for publishing wheels for CPython 3.12.

Changes:

- Build wheels for CPython 3.12
- Documentation improvements
- Added experimental env PYMUNK_BUILD_SLIM to slim down wheels for
WASM/Pyodide.
- Added assert for circular reference when pickling/copy
- Fixed memory leak in batched api benchmark

6.5.1

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

**Fix source dist**

Some custom cffi c headers and source files are now included in the source
distributions so that Pymunk can be fully built from it.

Changes:

- Include pymunk custom c files in source dist zip

6.5.0

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

**Repeatable pickle/unpickle of simulation!**

When pickling the internal collision state will now be pickled as well,
meaning that the unpickled space will behave as the original even when
collisions where ongoing while pickling. This is useful if you want to
replay a simulation.

Changes:

- Pickle of internal collision state
- Merged the latest upstream Chipmunk version
- Improved type hints
- Improved docs

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.