Godot Version
4.5.1
Question
I am currently implementing marching squares terrain and softbody physics at the same time. I wanted to test them together to see how it feels (the softbody can be controlled with arrow keys) and when the softbody fell of the “cliff” one of it’s points clipped through the static body’s collision:
The setup I’m using:
Each point is a rigid body connected with eachother with damped spring joint with the damping set to 0.2. The points and joints are created directly using the PhysicsServer2D. Points don’t collide with eachother.
Every frame, points are thrown in the direction from point to the center with a force of 40.
The marching squares terrain creates a static body for collision with bounce set to 0 and friction set to 1. Collision shapes are convex collision shape (or CollisionPolygon2D if using nodes like on the screenshot).
The error seems to occur when creating static body for terrain with PhysicsServer2D and with nodes.
Does anyone know how can this be fixed?
