I'm working on a game where I need ragdolling enemies on death. I looked at a tutorial where you animated the ragdoll using an animator, and then on death, the animator is disabled and the iskinematic is turned off in each bone.
This works, but it's really glitchy and half the time the ragdoll spawns and freaks out for a second.
I was thinking that most people animate a character, then on death they spawn in a prefab of the ragdoll to replace the character, and spawn the bones in at the same positions and with the same velocity as the player was alive. I've tried to find a good starting point to try this method out, but can't really find anything. I find people asking specific questions about scripts they are making, but I can't seem to find a general idea of where to start.
Is there anyone out there that has some good knowledge on where to start or possibly even a basic script they use that I could take a look at?
Any help would is greatly appreciated! Thank you :D
↧