Skip to content

fix: solve a sleeping island's contacts on the step a new contact wakes it - #1080

Open
kylegrahammatzen wants to merge 2 commits into
dimforge:masterfrom
kylegrahammatzen:fix/contact-wake-solver-hints
Open

kylegrahammatzen wants to merge 2 commits into
dimforge:masterfrom
kylegrahammatzen:fix/contact-wake-solver-hints

Conversation

@kylegrahammatzen

@kylegrahammatzen kylegrahammatzen commented Nov 21, 2026 •

Copy link
Copy Markdown

When a falling box lands on a sleeping pile, the whole pile drops through one step of free fall before its contacts catch it, because falling asleep clears the solver hints of the pile's contact pairs and a wake from a new contact happens after this step's pair update, so none of those contacts reach the solver until the next step.

Now the pairs of the bodies a new contact wakes get their hints back in the same step, as they already did for a wake from wake_up.

Box dropped on a sleeping 200-box heap Before After
Heap boxes in free fall on the wake step 198 of 200 0
How far the far side of the heap sinks 1.7 mm 0.02 mm

The parity golden is re-minted because its scene drops boxes onto a sleeping pile, with every build agreeing on the new hash, and the snapshot goldens don't change.

…es it

Falling asleep count-clears the solver hints of the island's pairs, and only
the next pair update restores them. A wake from a new contact happens after
this step's pair update, so the island fell freely for that step. The woken
bodies' pairs now get their hints back right away, and are flagged so that
the next graph maintenance puts them back in the force-event list.
The parallel-path parity scene drops boxes onto a sleeping pile, so its
golden hash changes with the fix. All three builds agree on the new one.
@kylegrahammatzen
kylegrahammatzen force-pushed the fix/contact-wake-solver-hints branch from fca4be3 to eb84715 Compare November 21, 2026 17:46

This branch has not been deployed

No deployments
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