- Home /
Animating Ragdolls
Hey,
I have a question about animating ragdolls. I know how to make a ragdoll using Unity's wizard. I also get how to make it transition from Mecanim to ragdoll by disabling/enabling the animator and kinematic elements. However, I want to know if and how it is possible to combine Mecanim with a ragdoll. Say I have an animation that animates only the feet of my character - a simple walking animation, but without arm movements. The ragdoll should follow the movement while at the same time making the arms flail around. A great example of this would be this game, which is also being made in Unity: https://www.youtube.com/watch?v=GzDElvfQcU0
Due to the combination of animation and ragdolls, the combat really looks as smooth as butter. I want to achieve a similiar effect. Can anybody explain this or at least point me to a good resource? I really don't want to have to buy a plug-in as I want to understand the topic, not just slap it on my character.
Thanks in advance.
Just an opinion and maybe there are better ways, but what i'm thinking is to create seperate parts and animations for different parts and attach them together under one other object. I think you would get the behaviour you want.
Answer by Griffo · Apr 16, 2014 at 10:45 AM
I'm using THIS
Yeah, that's the plug-in I was referring to. Do you know how it works? I don't just want to use it, I want to understand how it works as well.
If you email Patrik (the developer) he'll answer any questions you have, he's very responsive.
kavorka-racing.com
The code can be deciphered and understood, and edited if needed you suite your project, I work in javascript so had to write a global script as a go between as the compile order didn't work with some of my .js I'd written a while back (large ones) and wasn't going to re-write them so used a global script to hold variables AnimFollow and my .js need to access, then added in the correct compile order, all the AnimFollw scrips are in C#
Answer by HuskyPanda213 · Apr 15, 2014 at 03:40 PM
Ragdolls are made using special components: Colliders, Joints, and Rigidbodys(I think). So, if you want the arms to move(maybe even the whole body), you should create the ragdoll, but remove the components from the objects that should not be effected by the ragdoll.
Hope this helps, comment if you still need help.
Sorry for answering so late. I get your point, but this actually does not work because if you slap an animator on a ragdoll it will work just like a normal character, the ragdoll does not matter. Therefore, everything will get animated no matter if it has colliders/joints/etc attached to it or not.
Set the animator mask not to animate the parts that should be ragdolled.
Do what he says. This is the official way to fix/do what you are asking.
That works for disabling the animations for body parts so thanks for that, but those body parts somehow do not get a ragdoll effect. The arms just remain in front of the character, not reacting to impact or physics in general.
Answer by facePuncher7 · Jun 01, 2016 at 03:40 AM
Check out my game Face Puncher on the Google Play Store, it's similar to Gang Beasts, entirely animated with physics.
If you have questions send a message to BigSmokeGames on facebook, my business page.
Hello @Dreadlock666 ! my name is sebastião lúcio and i'm a developer for a small indie studio and we took a good look at his amazing Face Puncher game and we love his RagDoll system because we are creating a new game similar to yours and the fall guys and we need this system in our game, would you have it available? thank you very much for your attention!