Skip to content

SoftBody3D: fix transform getting out of sync with the RenderingServer #108097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simpkins
Copy link
Contributor

This is a somewhat minimal fix for issue #108090.

This fixes the code so that VisualInstance3D still correctly receives all transform update notifications and can call
RenderingServer::instance_set_transform() correctly.

In the long run it seems like it would perhaps be better to fix SoftBody3D so that it calls
VisualInstance3D::set_instance_use_identity_transform(true) rather than attempting to always reset its global transform back to the identity matrix. However, doing so is a more complex change that may have somewhat larger side-effects. I think it is possibly worth doing this in a future commit, but applying this minimal fix seems worthwhile in the interim.

This is a somewhat minimal fix for issue godotengine#108090.

This fixes the code so that `VisualInstance3D` still correctly receives
all transform update notifications and can call
`RenderingServer::instance_set_transform()` correctly.

In the long run it seems like it would perhaps be better to fix
`SoftBody3D` so that it calls
`VisualInstance3D::set_instance_use_identity_transform(true)` rather
than attempting to always reset its global transform back to the
identity matrix.  However, doing so is a more complex change that may
have somewhat larger side-effects.  I think it is possibly worth doing
this in a future commit, but applying this minimal fix seems worthwhile
in the interim.
@simpkins simpkins requested review from a team as code owners June 29, 2025 01:53
@AThousandShips AThousandShips added bug topic:physics topic:3d cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Jun 30, 2025
@AThousandShips AThousandShips added this to the 4.5 milestone Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release topic:physics topic:3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants