diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-14 00:48:31 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-14 00:48:31 (GMT) |
commit | f03bf34e56ebb9a9140818288f84592f635c6a24 (patch) | |
tree | a26177e0991207e711c78a48bc3b1f67897dcb6b /plugins/physics/physics.py | |
parent | 119c5fd1320bf5d03c30036d12764d69c97b0ba8 (diff) |
fix rotation problem for rectangles
Diffstat (limited to 'plugins/physics/physics.py')
-rw-r--r-- | plugins/physics/physics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/physics/physics.py b/plugins/physics/physics.py index 13a031e..4353cbf 100644 --- a/plugins/physics/physics.py +++ b/plugins/physics/physics.py @@ -643,7 +643,7 @@ a Physics activity.'), self._polygon.append([x - width / 2., y + height / 2.]) h = self._tw.turtles.get_active_turtle().get_heading() if h != 0: - self._rotate_polygon(x, y, h * pi / 180.) + self._rotate_polygon(x, y, (90 - h) * pi / 180.) self._prim_box2d_end_filled_polygon() def _prim_box2d_radius(self, tooth_count): |