Skip to content

concave asteroids #48

@0xDE57

Description

@0xDE57

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

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions