So basically, I am trying to make a stick figure rig that is affected by physics that will be put in a ragdoll-esque state. (it's kind of like the stick figures from Off The Sticks by Dani, or one that you could put together in Algodoo)
I was able to rig my stick figure together with relative ease, however I'm unsure of how I can have Godot's 2D physics system handle it. I'm thinking I can parent this rig to a RigidBody2D, but then how can I add collision to it?
If I set up a CollisionPolygon2D I think it will just remain in the shape of the original pose and the shape won't be determined by the rig itself.
So how could I determine collision via my sprites/bones for a RigidBody2D? Or is there a better way altogether to make a ragdoll rig/rig affected by physics.
EDIT: After toying around with possible fixes a lot and finding nothing I'll try to be more specific with what I'm trying to achieve: The stick figure is rigged with the bones system so the limbs are connected. That's how far I've gotten. I can't figure out how to make the body parts stay connected, yet also be affected by physics and move on their own, here's the hierarchy of everything for the stick figure rig:
Torso, inside that there's the Head, Right Leg, Left Leg, Right Arm, Left Arm, which are all sprites. The arms and legs are split into an upper and lower section, and inside everything (excluding the torso itself and the upper body parts) there's a Position2D as an endpoint. I rigged it together using the tutorial from the Godot Docs.
I found that if I made a RigidBody + Collision for every part individually, the physics stuff would work. (although it is messy)
But with this rigging the character together just does not work, so all the body parts move on their own.
Then I tried storing all limbs as a RigidBody on the same layer and connecting them with PinJoint2Ds, still didn't work at all.