2d ragdoll, where to start?

In my current project I need to implement a 2D ragdoll. But, I have no idea how to go about this, or even where to start. After some fruitless Goggling I figured I’d ask someone who knows about this, or someone who has done it before.

I would recommend making a ragdoll as you usually would, but using the rigidbody to freeze it’s parts on the Z axis (or any axis of your choice). This is what I do when I make 2d platformers to prevent the player from falling off the edge.