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
Rotation works based on the center of the bounding box, which changes with rotation. As a result, triangles wobble as the rotate, as evident in graphics_demo.py. This is probably worse with non-regular polygons that are oddly shaped.
One solution is to add a keyword argument to Shape.rotate, perhaps use_true_center, that will override the bounding box behavior.
The issue is more complicated for rotation due to the angular_velocity attribute. Perhaps a boolean flag attribute use_true_center_when_rotating?
The text was updated successfully, but these errors were encountered:
Rotation works based on the center of the bounding box, which changes with rotation. As a result, triangles wobble as the rotate, as evident in
graphics_demo.py
. This is probably worse with non-regular polygons that are oddly shaped.One solution is to add a keyword argument to
Shape.rotate
, perhapsuse_true_center
, that will override the bounding box behavior.The issue is more complicated for rotation due to the
angular_velocity
attribute. Perhaps a boolean flag attributeuse_true_center_when_rotating
?The text was updated successfully, but these errors were encountered: