Search Unity

2D Ragdoll Creator

Discussion in 'Assets and Asset Store' started by temo_koki, Mar 15, 2014.

  1. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    2D Ragdoll Creator

    $2D Ragdoll Creator Extension.jpg

    $before after.jpg

    This editor extension helps you to create 2D ragdolls fast and easy way.
    Also contains few scripts to control ragdolls, drag them by mouse or touch, break body parts, play hurt sounds and instantiate blood.

    You can use this also on 3D meshes. If they have assigned any 2D collider.
    It isn't necessary to assign all body parts, you can create different type of ragdolls, just don't enter body parts which you don't want.

    Sent for review on asset store, before it'll be available, you can have fun with ragdolls created with this tool:

    https://dl.dropboxusercontent.com/u/7197062/2D Ragdoll Creator/2D Ragdoll Test.html


    And the video to see how the tool is used:





    $AssetStoreButton.png
     
    Last edited: Mar 28, 2014
    BrandyStarbrite likes this.
  2. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    Very funny to use in your demo...

    6R
     
  3. nuverian

    nuverian

    Joined:
    Oct 3, 2011
    Posts:
    2,087
    Looking very cool :)
    I can think dozens of games that this will be very usefull :p
    Good job
     
  4. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    Ragdolls are always funny :) I'm glad that you liked it.
     
  5. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    It's now available on asset store.
    Link is above in lovely blue button :)
     
  6. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
  7. itjunkii

    itjunkii

    Joined:
    Dec 1, 2011
    Posts:
    35

    Attached Files:

  8. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    Hi,
    That may be the problem that when sending project on asset store, Unity project settings aren't sent, so tags, layers and other settings which I had set in my project aren't same for you. Here is attached zip of those settings, replace files in ProjectSettings folder with included ones.
    Let me know if it'll fix your problem,
    Best regards.
     

    Attached Files:

  9. itjunkii

    itjunkii

    Joined:
    Dec 1, 2011
    Posts:
    35
    That fixed it, thanks for the help!!
     
  10. itjunkii

    itjunkii

    Joined:
    Dec 1, 2011
    Posts:
    35
    Can you give me a suggestion on how I would enable or disable ragdoll on a GO?
     
  11. itjunkii

    itjunkii

    Joined:
    Dec 1, 2011
    Posts:
    35
    i'm trying to mimic the game backflip madness
     
  12. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    That would be tricky to do with using only ragdoll, you'll need to move joints physically. May be create invisible object which will have spring joint attached and connected to appropriate body parts and move that invisible object (see how "Drag.cs" is working). Lower joint's angle limits when you want to make ragdoll straight.

    If you'll do animations with separate character and activate ragdoll when it crashes that would be easier.
    To enable/disable ragdoll just activate/deactivate ( gameObject.SetActive() ) root of ragdoll. When crash occurs you'll need to match ragdoll parts position & rotation to animated character's parts before activating it.
     
  13. MonemAhmed

    MonemAhmed

    Joined:
    Mar 4, 2014
    Posts:
    23
    Hi Temo,

    I have buy your 2D ragdoll plugin and it is working fine i need to know one thing if i want to move a leg or hand of a ragdoll how does i can achieve that because when you give force or change angle of any body part of ragdoll it swing complete character do you have any idea how can we achieve this.
     
  14. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    Hi,
    As you may already noticed the ragdoll is a collection of rigidbodies connected to each-other with joints. So of course the whole body will be affected by applied force on any part. If you want to move any rigidbody object without applying force you need to make it isKinematic:
    http://docs.unity3d.com/ScriptReference/Rigidbody-isKinematic.html

    use rigidbody's functions for changing position and rotation:
    http://docs.unity3d.com/ScriptReference/Rigidbody.MovePosition.html
    http://docs.unity3d.com/ScriptReference/Rigidbody.MoveRotation.html
     
  15. dhamil

    dhamil

    Joined:
    Nov 10, 2014
    Posts:
    4
    Hi Temo,

    Does this plugin handle flipping of characters?

    For example, in your example project, can you flip the textured character using rotation or inverse x-scale to make it face left and keep the ragdoll intact?

    Cheers
    David
     
  16. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    Hi,
    If you want flipping at run-time, there is no function for this.
    If you want in editor, you need to scale actual body parts, not the root/parent object only.
    Then you may need to change lower/upper angle limit values for legs.

    Thanks.
     
    Last edited: Nov 21, 2015
  17. FyreDogStudios

    FyreDogStudios

    Joined:
    Aug 23, 2015
    Posts:
    97
    Hello,

    Is this asset Mobile Ready?
     
  18. temo_koki

    temo_koki

    Joined:
    Jul 14, 2009
    Posts:
    308
    Hello,
    This asset uses Unity's standard 2D colliders & joints to assemble ragdoll.
    So there won't be any problem on any platform.
     
    FyreDogStudios likes this.