SoftBody support in GodotPhysics 3D #46937
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
List of changes:
SoftBody
surface update with new rendering systemSoftBody
SoftBody
rid to interact with the physics serverSoftBody
bounds from the physics serverget_vertex_position
andget_point_offset
from the physics serverRenderingServerHandler
interface toPhysicsServer3D
so the physics servers don't need to reference the class fromSoftBody
node directlyNotes:
SoftBody
creation and simulation is mostly based on Bullet soft bodies and internal soft body queries use the dynamic BVH implementation from Bullet introduced in Add a Dynamic BVH implementation. #44531.ConcavePolygonShape
is currently buggy. GodotPhysics allows backface collision and that doesn't play well with small particle collision (they can be pushed through faces by the solver and sometimes along the face plane because of an extra bug). This will be addressed in a separate PR.