How to ragdoll specific parts of the body?

I wanted to make a cart, that player can push, the way I imagined it to work, is by ragdolling the players arms, or replacing them with other parts, attached to players body by either hinge constraint or ball socket.

Thought of something like this for an R6 character:


So that it would theoretically be able to go up or down the slopes:

I however don’t know how I would do that. I think I have heard of Motor6D but I never worked with it before. Any ideas how I would make something like that?

Most ragdolls are done by turning Motor6Ds into ball socket joints, so to do it on only part of the character, you would only do that on specific Motor6Ds.

I would recommend you look at the code of some ragdoll scripts and reference them from there.

I had a similar situation where I needed a hand to stay on a specific part and I used Inverse Kinematics to achieve it. They work for pretty much any avatar type (e.g. R6 or R15) and you can use constraints to limit how much an arm can move to avoid unrealistic arm positions.

Have a look at the documentation for it and follow the example there to understand it a bit better. I haven’t used it much but feel free to ask if you need any help with it.

I’ve read through the documentation, and I’m not quite sure its the thing I need. These Inverse Kinematics seem great, but with the given examples for R15. I don’t find “realistic behavior” fitting for R6 rig. The original idea of adding a few hinge constraints to arms seems much more appealing to me, but I don’t know how I would get the parts of a player’s character.