Skip to content

Chain builder - #1129

Merged
erincatto merged 14 commits into
mainfrom
rollback_02
Oct 30, 2026
Merged

erincatto merged 14 commits into
mainfrom
rollback_02

Conversation

@erincatto

@erincatto erincatto commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner
  • Chain builder converts array of polygons into an array of chain loops
  • update zig build for 0.17
  • faster CI
  • contacts are no longer recycled when a body has a CCD event
  • fix ghost vertices if degenerate
  • geometric mover now skips backside chain collision
  • contact recycling is disabled if a shape enables pre-solve events
  • fix doxygen search

@erincatto
erincatto merged commit dd8bd3f into main Oct 30, 2026
28 checks passed
@erincatto
erincatto deleted the rollback_02 branch October 30, 2026 05:07
ice1000 added a commit to ice1000/Box2D.NET that referenced this pull request Nov 12, 2026
- Add b2ComputeChains / b2FreeChains (B2ChainBuilders) that merge polygons into chain loops, with B2ChainStatus, B2ChainData and B2ChainResult
- Builder uses Dictionary<ulong, int> in place of verstable; maps are only looked up, never iterated, so output stays deterministic
- Contacts are no longer recycled after a time of impact unless already touching
- Contact recycling is disabled when either shape enables pre-solve events
- b2Shape_EnablePreSolveEvents refreshes recycle and pre-solve flags on existing contacts
- Fix degenerate ghost vertices on standalone chain segments (create and set)
- Geometric mover skips the back side of chain segments
- Tests: DegenerateGhostTest, MoverOneSidedTest, ComputeChainsTest, PreSolveToggleTest
- Samples, zig, CI and doc changes not ported

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant