How to stick ragdoll to surface

So when characters die in my game they instantiate ragdolls. The problem I am having is I have traps in my game and one is a spike trap. How can I make it so the ragdoll sticks to the spike trap like it is impaled but still has the floppy head/ arms of a ragdoll?

perhaps if you change the direction of the vectors and rotate the ragdoll 3d model and spread the limbs so they don’t interact with the spike.

You can create a script in the spike trap to attach a script to the bone that touched it to keep it frozen in the world. Ragdoll physics should collapse the rest of the body accordingly.