Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "wobbly" rotation of some polygons #4

Open
hsharrison opened this issue Jul 28, 2014 · 0 comments
Open

Fix "wobbly" rotation of some polygons #4

hsharrison opened this issue Jul 28, 2014 · 0 comments

Comments

@hsharrison
Copy link
Owner

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?

@hsharrison hsharrison added this to the 0.3.0 milestone Jul 28, 2014
@hsharrison hsharrison changed the title Fix "wobbly" rotation of some polyhons Fix "wobbly" rotation of some polygons Jul 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant