How to rotate bones while in ragdoll state?

Hello,

I would like to have my character (skeletal mesh) go ragdoll, and then interact with individual bones while in that state.

For instance, while in ragdoll, rotate the head bone by mouse yaw. Note that this is not asking for blending into an animation. I want interactive real-time control of the bone’s relative rotation.

Eventually my goal is to set up a script to programatically interact with multiple bones in this way (rather than using mouse input.)

I’ve looked and can’t find any help on this topic. Thank you.


Edit:

I don’t need the character to be in ragdoll state, really. I just need the mesh to have physics like a real body would. It should crumple at the joints, like a real body. This sounds like ragdoll to me, but if there is another way- I’m open to it.

Hm, i actually do not know if it works,
But you can simulate the Physical mesh body from a certain bone.
So just leave the head out?
It should still act over the normal inputs and manipulations, but i dont know if you have to recreate the direction of the input to be in the right relation. (If the body falls, the head angle changes and stuff, depends on your script)
Found out about this when i “killed” a player but forgot to kick him out of controls xD