Skip to content

fix: remove fixed bodies from the active set - #1086

Open
kylegrahammatzen wants to merge 2 commits into
dimforge:masterfrom
kylegrahammatzen:fix/fixed-bodies-active-set
Open

kylegrahammatzen wants to merge 2 commits into
dimforge:masterfrom
kylegrahammatzen:fix/fixed-bodies-active-set

Conversation

@kylegrahammatzen

@kylegrahammatzen kylegrahammatzen commented Nov 22, 2026 •

Copy link
Copy Markdown

A dynamic body turned fixed with set_body_type leaves its island but stays in the active set, so it's still processed every step and the active set never empties even once the rest of the scene sleeps.

Now a body turned fixed also leaves the active set and joins it again as usual when it's turned back to dynamic.

Boxes turned fixed with set_body_type Before After
Active bodies a step after turning 900 of 1000 fixed 1000 100
Active bodies once the other 100 sleep 900 0
Step time with 9000 of 10000 turned fixed 2.19 ms 0.68 ms

Bodies that start out fixed weren't affected.

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