From f03bf34e56ebb9a9140818288f84592f635c6a24 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 14 Oct 2013 00:48:31 +0000 Subject: fix rotation problem for rectangles --- (limited to 'plugins') 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): -- cgit v0.9.1