Pymunk

Latest version: v6.8.0

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

Scan your dependencies

Page 1 of 7

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.8.0

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

**Spring improvements**

This release makes the max force property on the two spring constraints work
as expected (previosuly it did not have any effect). It is also possible to
fully override the force/torque calculation of the springs with new callback.
Appart from this a collection of fixes in the underlying Chipmunk2D library
has been added. Finally its 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 constaints.
- 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

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.