Pymunk

Latest version: v6.7.0

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

Scan your dependencies

Page 1 of 6

10.14

Main fix is to allow Pymunk to be installed on latest version of MacOS. This
release also contain a bunch of minor fixes and as usual an improvement of
the docs, tests and examples.

Changes:

- On newer versions of MacOS only compile in 64bit mode (32bit is deprecated)
- Improved docs, examples and tests
- Fix in moment_for_* when passed Vec2d instead of tuple
- Fix case when adding or removing more than one obj to space during step.
- Allow threaded solver on Windows.
- Use msys mingw to compile chipmunk on Windows (prev solution was deprecated).

Enjoy!

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 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.