Skip to content

Commit

Permalink
Fix Actor's angle setter
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesej authored and lordmauve committed Jan 5, 2019
1 parent 6e96571 commit cfa8f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgzero/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def angle(self):
def angle(self, angle):
self._angle = angle
w,h = self._orig_surf.get_size()
self.width = abs(w * sin(radians(angle))) + abs(h * cos(radians(angle)))
self.height = abs(w * cos(radians(angle))) + abs(h * sin(radians(angle)))
self.height = abs(w * sin(radians(angle))) + abs(h * cos(radians(angle)))
self.width = abs(w * cos(radians(angle))) + abs(h * sin(radians(angle)))
ax, ay = self._untransformed_anchor
p = self.pos
self._anchor = transform_anchor(ax, ay, w, h, angle)
Expand Down

0 comments on commit cfa8f6e

Please sign in to comment.