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
+2
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,12 @@ Changelog
12
12
Changed body.constraints to return a KeysView of the Constraints attached to the body. Note that its still weak references to the Constraints.
13
13
Reversed the dependency between bodies and shapes. Now the Body owns the connection, and the Shape only keeps a weak ref to the Body. That means that if you remove a Body, then any shapes not referenced anywhere else will also be removed.
14
14
Changed body.shapes to return a KeysView instead of a set of the shapes.
15
+
Changed Space.segment_query to return None in case the query did not hit the shape.
15
16
16
17
Added default do_nothing and always_collide callback functions to the CollisionHandler, so that its clear how to reset and align with other callbacks.
17
18
If in old code you did handler.begin = None, you should now instead to handler.begin = CollisionHandler.always_collide etc.
18
19
20
+
Changed type of PointQueryInfo.shape, SegmentQueryInfo.shape and ShapeQueryInfo.shape to not be Optional, they will always have a shape.
19
21
New feature: ShapeFilter.rejects_collision()
20
22
New feature: Added Vec2d.polar_tuple
21
23
Optimized Vec2d.angle and Vec2d.angle_degrees (note that the optimized versions treat 0 length vectors with x and/or y equal to -0 slightly differently.)
0 commit comments