You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
Changelog
3
3
=========
4
4
.. Pymunk 7.0.0
5
+
Changed Space.shapes, Space.bodies and Space.constraints to return a KeysView of instead of a list of the items. Note that this means its no longer a copy. To get the old behavior, do list(space.shapes) etc.
6
+
5
7
Breaking: At least one of the two bodies attached to constraint/joint must be dynamic.
6
8
New feature: Vec2d supports bool to test if zero. (bool(Vec2d(2,3) == True) Note this is a breaking change.
7
9
Added Vec2d.length_squared, and depreacted Vec2d.get_length_sqrd()
@@ -14,7 +16,7 @@ Changelog
14
16
Changed body.shapes to return a KeysView instead of a set of the shapes.
15
17
Changed Shape.segment_query to return None in case the query did not hit the shape.
16
18
Changed ContactPointSet.points to be a tuple and not list to make it clear its length is fixed.
17
-
19
+
18
20
Added default do_nothing and always_collide callback functions to the CollisionHandler, so that its clear how to reset and align with other callbacks.
19
21
If in old code you did handler.begin = None, you should now instead to handler.begin = CollisionHandler.always_collide etc.
0 commit comments