Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Ragdoll Characters

Discussion in 'General Discussion' started by ostrich160, Aug 15, 2014.

  1. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Does anyone know how to create physics based ragdoll characters? Not characters that just completely Ragdoll, I dont know what the word is, but with a similar movement style to games like Gang Beasts (which was built in unity). If anyone knows how to do this, or knows any tutorials, the help would be greatly appreciated.
     
  2. Zomby138

    Zomby138

    Joined:
    Nov 3, 2009
    Posts:
    659
    Have you seen the IK controls that are available in Mecanim?
     
  3. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    No I havent, how do you use them?
     
  4. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Hey, I did a little experimenting but still couldnt find anything. If anyone knows the solution Im looking for, please held

    Thanks guys
     
  5. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
  6. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
  7. rcober

    rcober

    Joined:
    Jan 26, 2013
    Posts:
    52
    Check out AnimFollow and FinalIK Unity Assets
     
  8. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    I brought Final IK about half an hour ago for this exact reason, but I have no idea how to make it work in this ragdolly kind of way
     
  9. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Yeh Ive been playing round with it for the last couple of hours, nothing like what I wanted produced. Unless Im doing this wrong
     
  10. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Alright so I've been working on this for the last 8 hours and I've gotten nowhere, so Im getting pretty desperate at this point. Even if someone is selling it as an asset, I'd be willing to buy it, just anyway to actually do this
     
  11. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    Last edited: Aug 16, 2014
  12. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    I think you've been a little confused with my question, sorry if it wasnt clear. Basically, I dont want my character to go from animated with keyframes to ragdoll, I want to have the entire character controlled by a ragdoll.
    Its a little hard to explain, but heres a video of it in action, go to about 0.14 and see how the characters move

     
  13. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    ooh.. i guess make a ragdoll.. and then code the movement of bones, restrict them from moving past a certain rotation/ position, and if enemy is interacting with you, unlock rot/pos

    the arms move based on input right?

    animate the walking (walking here, the legs looks like fixed animation) , but when the enemy grabs you disable the animation and let the legs be ragdoll..

    not totally sure, speculating how i might do it..
     
  14. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    the devs told me they basically used some different forces on the bones, but that didnt work for me first time, although my character mesh is rather unusual so the physics might be off on it. Im trying again with a new, more realistic mesh, and then I'll work from there
     
  15. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    That was it! I just needed to make a character who was a bit more real, and now it works much better
     
  16. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,623
    I think there's a general interest in this type of approach, but maybe not much first hand knowledge of how to go about it. If you have anything you've learned about what to do and what not to do regarding a "ragdoll controller" it would be great if you could share it.

    Thanks!
     
  17. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Actually mate your right, I was so upset/frustrated last night that there were no tutorials, now I'd be no better if I didnt make one myself when I learnt how. I'll try to get it all together to do a quick tutorial tonight, and I'll post it on this thread when its done. Hope it helps anyone thats coming this way
     
    hopeful likes this.
  18. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Here you go friends, hope this held

     
    Noisecrime likes this.
  19. CaoMengde777

    CaoMengde777

    Joined:
    Nov 5, 2013
    Posts:
    813
    i wasnt really interested in this, but now you got me interested :) .. thanks alot for the video!
    sharing knowledge is a real nice thing! , thanks

    video audio a bit quiet, but i just cranked up my equalizer settings, and its fine :)
    lol the red character looks like poultry hehe:D
     
  20. ostrich160

    ostrich160

    Joined:
    Feb 28, 2012
    Posts:
    679
    Yeh audio was a bit of a problem, but I couldnt be bothered to record a 15 minute video all over again, and I knew if people were interested they'd just find their own way to increase it (as you did).

    Yeh he does look like a chicken, funnily enough I never noticed that movement until now. I think that kind of adds to it though :D