Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Ragdoll building

Discussion in 'Animation' started by Carlj28, Oct 25, 2013.

  1. Carlj28

    Carlj28

    Joined:
    Oct 16, 2013
    Posts:
    5
    Hello,
    I need to build ragdoll (simple, parts of his body can be cubes, sphere, cylinders) and movment (left, right, jump) where I can found some tutorial how to do it?
    Thanks for any help :)
     
  2. Pirs01

    Pirs01

    Joined:
    Sep 30, 2012
    Posts:
    389
    What are you talking about? Creating model? Setting up muscle constrains? Coding rag doll physics? Implementing this in Unity?
    "building" is not exactly a technical term in this matters.
     
  3. Carlj28

    Carlj28

    Joined:
    Oct 16, 2013
    Posts:
    5
    Sorry for misunderstanding, but I dont have any experience in this. I will probobly nead all of that
     
  4. Pirs01

    Pirs01

    Joined:
    Sep 30, 2012
    Posts:
    389
    Ok, so what is this ragdoll for? You want it in your game you are creating with Unity?
     
  5. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,363
    The simplest method is to take a free Mecanim model, apply the "Create Ragdoll" script that is built into Unity 4, and then start studying what they did.

    The built-in script assumes you have a Mecanim-style humanoid with bones for head, neck, upper arm, forearm, thigh, shin, foot. If you don't, it's not going to be able to proceed. However, once you see its output, the combination of components added to each bone is more clear, and you can apply the secret sauce to your own non-humanoid models manually.

    I actually wrote a small script that let me add the necessary ragdoll bits to any selected bone(s), which helps for ponytails and belt accessory dangles. I might give it away for free, but I haven't seen a whole lot of Boo love on the Asset Store.
     
  6. Carlj28

    Carlj28

    Joined:
    Oct 16, 2013
    Posts:
    5
    Yes I whant to create game un unity, simple one, player (ragdoll) can move left right, jump on something.
     
  7. Pirs01

    Pirs01

    Joined:
    Sep 30, 2012
    Posts:
    389
    Once you have your character setup in Unity project then to make it a ragdoll you should follow halley instructions.

    A setup character would be a 3d model with armature and rigged. You would probably want it to be animated also.

    https://www.google.com/#q=3d+modelling
    https://www.google.com/#q=3d+armature
    https://www.google.com/#q=3d+rigging

    After that, what halley described is a scripting job. If you don;t know about that refer to google or more specifically for Unity you can start here:
    http://unity3d.com/learn/tutorials/modules/beginner/scripting
     
  8. Carlj28

    Carlj28

    Joined:
    Oct 16, 2013
    Posts:
    5
    Thanks for advice, in Unity there is create other > ragdoll... is this a good idea to use it?