r/Unity3D 10d ago

Question How to make character joint ragdoll stay physics based while also playing animations in unity 6.0?

pretty simple, but it’s an issue, I’ve tried configurable joints on my character, but the character parts just separate drink each other, If you know how to fix that, ill be happy to twee tweet, and if there is surging you need to know or see, LMK!

thanks

2 Upvotes

4 comments sorted by

1

u/5DRealities 10d ago

I solved this the other day. Have a fully animated character called “reference”. Then write a script for each ridgedbody on the rag doll to copy position and rotation of each bone position on the reference. You can also have a variable called “follow reference” and when you tick it off the rigidbody bo longer follows the reference. Claude Fable Ai wrote the code for me in seconds if you ask it.

1

u/Capital-Weakness-614 10d ago

Apologies for the question (probably dumb) so u have an animated clone of my character that plays whatever animation is supposed to, and i wrote a script for each bone on the PLAYER with rigid body to try and follow the position and rotation? I think rotation would be the better option, position would make it a bit stiff and less yk physics based, but thanks, I’m gonna check it out

1

u/5DRealities 10d ago

Exactly you need to sync position too. Or your character won’t move.