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

concave asteroids #48

Open
0XDE57 opened this issue Nov 4, 2023 · 2 comments
Open

concave asteroids #48

0XDE57 opened this issue Nov 4, 2023 · 2 comments
Assignees

Comments

@0XDE57
Copy link
Owner

0XDE57 commented Nov 4, 2023

Can we use multiple convex polygons to create a concave polygon?
Can we glue polygons together?

From the docs:


Weld Joint

The weld joint attempts to constrain all relative motion between two bodies. See the Cantilever.h in the testbed to see how the weld joint behaves.

It is tempting to use the weld joint to define breakable structures. However, the Box2D solver is iterative so the joints are a bit soft. So chains of bodies connected by weld joints will flex.
**Instead it is better to create breakable bodies starting with a single body with multiple fixtures. When the body breaks, you can destroy a fixture and recreate it on a new body. See the Breakable example in the testbed.**

https://box2d.org/documentation/md__d_1__git_hub_box2d_docs_dynamics.html

@0XDE57 0XDE57 converted this from a draft issue Nov 4, 2023
@0XDE57 0XDE57 self-assigned this Nov 4, 2023
@0XDE57
Copy link
Owner Author

0XDE57 commented Dec 22, 2024

EarClippingTriangulator should handle convex shapes.

Screenshot_20241222_164805

Image source: https://www.youtube.com/watch?v=2x4ioToqe_c

@0XDE57
Copy link
Owner Author

0XDE57 commented Jan 5, 2025

With convex polygons I can have spectre based hat/turtle asteroids that tile into eachother!

https://www.youtube.com/watch?v=K6wXQvL5KRo

Every tiling by Spectres is closely related to a tiling with a sparse distribution of hats lying within a dense field of turtles, and one with a sparse distribution of turtles lying within a dense field of hats. In this short loop we demonstrate that equivalence by morphing continuously between these three tilings.

A chiral aperiodic monotile. See:
https://cs.uwaterloo.ca/~csk/spectre/

See also: penrose tiling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant