How can i prevent ragdolls from stretching and spazzing out?

I’ve made a ragdoll teddybear. I used the ragdoll wizard a little initially to see how it works, but it wouldn’t take an armature with only 7 bones, so i ultimately made this myself, with colliders, rigidbodies, and character joints, on each part.

As long as i move this little guy around slowly, and don’t get him caught on things, he’s fine;

But if i move him too fast, or swing him around in a way that part (not all) of him hits an object, bad things happen.

My best guess at what’s happening here, is that high forces are sending the limb rigidbodies flying, and they get caught on something in the scene, preventing them from coming back.

But i don’t understand HOW this can happen. The character joints have a breakforce set to infinity, so surely that should prevent them from going any distance from their starting point, no matter how much force they’re under?

The right leg in this case flew about 100m and got stuck behind a little hill in the distance.

Probably relevant, here’s the full inspector readout for that right leg (most of these values are just defaults)


I am struggling with the same issue for days. I’ve tried everything and there is no fix other than limiting ragdoll speed!

Ragdolls are broken and extremely unstable in Unity 5.

I’ve found a solution which seems to work perfectly now. Enable projection on the character joints.

default settings just magically made the problem go away.

30 Likes

thanks Nanako,your help work for me

Tried this and it worked like a charm for me. Thanks for the post!

I could be wrong, but I’m pretty sure this is a collision issue. I’ve had a similar issue with ragdolls, and the issue ended up being resolved by working out layer collisions in Edit->Project Settings->Physics

1 Like

None of these works in high speed collision impact, setting max depentration velocity helps, but it would cause some other issues, such as ignore collision impact.

Ragdolls don’t normally behave the best when paired with high velocity.

1 Like

Thanks Nanako. It worked fine for me.

Thanks Nanako. It working fine.:slight_smile:

Thanks @nanako.693001, I was able to use your enabling option… saved me tons of work.

Thanks Nanako, According to Unity’s manual: Joint and Ragdoll stability

1 Like

How do you enable character joints . I am also having this stretching issue with my character

thank you so much it worked for me

How did you get this to work? I do not see where to enable projection

@joeyether40 see the below image
3837106--323998--upload_2018-10-30_17-17-16.png

1 Like

i was using Configurable joints and that joint did not have that setting. I switched to character joint and used that and now no stretching ty

You are a legend. Works like a charm. So far. Need to test the collisions now. Cheerio

Uou, that is what I was looking for so long… Thank you very much!

5 years later and @Nanako solution still works great with the 2020 alpha, I was having issues where unity was crashing because my ragdoll was flying out of bounds/at too high velocities due to spaghettification glitches, this fully fixed it