Skip to content

[4.6] Allow SoftBody3D to have a total_mass of 0 again#116111

Merged
Repiteo merged 1 commit intogodotengine:4.6from
mihe:jolt/soft-body-min-mass
Feb 10, 2026
Merged

[4.6] Allow SoftBody3D to have a total_mass of 0 again#116111
Repiteo merged 1 commit intogodotengine:4.6from
mihe:jolt/soft-body-min-mass

Conversation

@mihe
Copy link
Contributor

@mihe mihe commented Feb 9, 2026

(This is the same as #116067, but targeting the 4.6 branch instead, since that one doesn't make much sense to merge to master, with #116041 being the more proper fix there.)

Fixes #116050.

This restores the lower bound of the total_mass property of SoftBody3D back from the new value of 0.001, as changed in #108758, to the old value of 0.

Note that this is mostly a hack, to accommodate for the questionable implementation of total_mass found in the Jolt Physics integration, where it will default to 0 no matter what the inspector says, and which results in the total mass being automatically calculated to 1 kg per point.

@mihe mihe requested a review from a team February 9, 2026 20:56
@mihe mihe requested a review from a team as a code owner February 9, 2026 20:56
@mihe mihe added the bug label Feb 9, 2026
@mihe mihe requested review from a team as code owners February 9, 2026 20:56
@mihe mihe added this to the 4.6 milestone Feb 9, 2026
@Repiteo Repiteo merged commit e9861df into godotengine:4.6 Feb 10, 2026
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Feb 10, 2026

Thanks!

@mihe mihe deleted the jolt/soft-body-min-mass branch February 10, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jolt Physics: SoftBody3D.total_mass changed default value between 4.5 and 4.6

3 participants