You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.5.2.stable.official and 3.6.beta (commit befdafd)
System information
Windows 10, GLES3
Issue description
For a 3D softbody, if physics_process is set to false in the editor, setting it to true in-game will cause the mesh to be translated to the world origin, except for vertices pinned to an object, permanently deforming the softbody.
There seem to be more complicated triggers for this issue, such as removing and re-adding a softbody to the tree when physics_enabled is false, which I suspect are from the same underlying issue.
The scenario I'm using this for is having softbodies disabled when they're initially loaded and only enabling them when the player is nearby, for cosmetic effects such as flags and curtains. I can work around it by starting with the physics enabled and disabling after a small amount of time.
Steps to reproduce
Create a softbody with a mesh.
Move it somewhere other than the origin
Set "physics_enabled" to false in the editor.
In-game, set physics_enabled to true and observe the softbody move to the origin.
Minimal reproduction project
softbody.zip
In this project, physics can be enabled for all the softbodies by pressing space.
It also demonstrates a workaround where the physics are enabled briefly at the start of the scene.
The text was updated successfully, but these errors were encountered:
Godot version
3.5.2.stable.official and 3.6.beta (commit befdafd)
System information
Windows 10, GLES3
Issue description
For a 3D softbody, if physics_process is set to false in the editor, setting it to true in-game will cause the mesh to be translated to the world origin, except for vertices pinned to an object, permanently deforming the softbody.
There seem to be more complicated triggers for this issue, such as removing and re-adding a softbody to the tree when physics_enabled is false, which I suspect are from the same underlying issue.
The scenario I'm using this for is having softbodies disabled when they're initially loaded and only enabling them when the player is nearby, for cosmetic effects such as flags and curtains. I can work around it by starting with the physics enabled and disabling after a small amount of time.
Steps to reproduce
Create a softbody with a mesh.
Move it somewhere other than the origin
Set "physics_enabled" to false in the editor.
In-game, set physics_enabled to true and observe the softbody move to the origin.
Minimal reproduction project
softbody.zip
In this project, physics can be enabled for all the softbodies by pressing space.
It also demonstrates a workaround where the physics are enabled briefly at the start of the scene.
The text was updated successfully, but these errors were encountered: