- Home /
How can I move my Ragdoll?
I made a ragdoll in Unity using HingeJoints2D and I want to move him. I made a script that move a character by using velocity and rigidbody but I find that the script does not work, so I found out about Physics but I can only pull my character in air and control him with mouse. Moreover I am unable to use animations because my player stop behaving like a ragdoll and physics stop working. The problem is that i research a lot on youtube and other tutorials but i could not find anything. Can somebody help me? I want to achieve something like Stick Fight: The Game
Answer by JonPQ · Aug 15, 2019 at 07:43 PM
Usually you have 2 setups... a boned/animated character, and a rag-doll version. You switch between animations controlling the character, and then when hit or killed, switch over to rag-doll and physics.
Thank you for your answer. First of all i have these 2 setups. One is a ragdoll version and the other one uses Inverse $$anonymous$$inematics and all of the animations are currently using bones. The problem is that your method is kinda buggy when hitted because the ragdoll is istantiated in a different location and is kinda difficult to implement that and to make smooth transitions. I am interested in moving the character based on physics. I made a script that pull my character upward using Addforce() and even move him but is hard to animate him through physics and move his legs to different rotations. Any idea for that? I saw the channel Dani that make this thing by using only physics but he has not any tutorials.
you could try using I$$anonymous$$, unity has some I$$anonymous$$ built-in plus there are other solutions in the asset store... but I think its hard to animate characters this way. its better to figure out how to sopy skeleton state from last position when hit, into the ragdoll version, when you turn on ragdoll.
Your answer
Follow this Question
Related Questions
How to implement Mob movement / death ? 1 Answer
Why is root motion reduced once I apply the animation? 0 Answers
Learning to move 1 Answer