Pymunk

Latest version: v6.9.0

Safety actively analyzes 681775 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.9.0

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

**Python 3.13**

This is a minor update to Pymunk with wheels for CPython 3.13. In addition,
with this release Pymunk no longer officialy support Python 3.7, since its not
supported anymore, and CFFI, which Pymunk uses, no longer provides wheels for
it. In addition, Pypy is somewhat broken until they release a version with
latest CFFI. Details on the Pypy issue here:
https://github.com/pypy/pypy/issues/5027 Expect Pymunk to publish wheels again
once a Pypy with the fix has been released.

Changes:

- Removed support for Python 3.7 (since latest cffi does not provide wheels
for it).
- Fixed issue with SlideJoint when changing body_type.
- Log Chipmunk level erros with logging module
- Build wheels for Python 3.13
- Modernized the build setup to rely on pyproject.toml for more settings.
- Almost completed a new benchmark suite mostly ported over from Box2d.
- Minor improvements to types
- No pre-built wheels for Pypy since the shipped versions comes with a CFFI
that doesnt support latest setuptools.

6.8.1

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

**Space lock bug fix**

This is a patch version, that fixes a bug in the separate collision callback
which could result in hard crash if after the separate another collision
callback ran and that callback added or removed something from the space.

Changes:

- Build/run MacOs ARM on ARM github runners.
- Fix lock bug in separate callback
- Improve documentation

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

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.