Skip to content

Fix manually sleeping persistent-island bodies#959

Closed
zdtango wants to merge 2 commits into
dimforge:masterfrom
zdtango:toonworld/fix-manual-sleep-island
Closed

Fix manually sleeping persistent-island bodies#959
zdtango wants to merge 2 commits into
dimforge:masterfrom
zdtango:toonworld/fix-manual-sleep-island

Conversation

@zdtango

@zdtango zdtango commented Jul 12, 2026

Copy link
Copy Markdown

Summary

  • mark explicit sleep transitions as body changes
  • move manually slept bodies into sleeping islands
  • treat their stale contacts as sleep-traversal boundaries until narrow phase updates

Reproduction

Calling RigidBody::sleep on an active body in a large persistent island panicked in island sleep traversal.

Validation

  • cargo test -p rapier3d --lib
  • reproduced and fixed in a 2,001-body Rapier.js world

@zdtango zdtango closed this Jul 12, 2026
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