Skip to content

Comments

feat: Add compound shape and convex decomposition support#361

Open
hsheth2 wants to merge 5 commits intodimforge:masterfrom
hsheth2:compound-collider
Open

feat: Add compound shape and convex decomposition support#361
hsheth2 wants to merge 5 commits intodimforge:masterfrom
hsheth2:compound-collider

Conversation

@hsheth2
Copy link

@hsheth2 hsheth2 commented Dec 27, 2025

Closes #44 and closes #226 and supersedes #303.

  • Added support for compound shapes and convex decomposition to the JavaScript bindings
  • The API uses separate arrays for shapes/positions/rotations (matches existing joint API pattern, unlike wip untested compound shapes #303 which created an Isometry class)
  • Added two testbed3d demos showcasing the features, and tested these manually in my browser.

Known limitation: compound shapes cannot be fully deserialized from snapshots (the Rust/WASM layer doesn't expose sub-shape query APIs). This only affects save/load workflows that need to inspect compound internals - normal creation and physics simulation work fine.

Disclaimer: I used Claude Code to produce this PR, but have manually reviewed the code myself already.

@hsheth2
Copy link
Author

hsheth2 commented Jan 30, 2026

Hey @sebcrozet, let me know if there's any blockers for getting this merged in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convex Decomposition Support for compound shapes

1 participant