Ragdoll 101- Part 1 The initial setup and keeping the Collision Capsule attached

Поділитися
Вставка
  • Опубліковано 6 жов 2024
  • Like what you see? Consider donating to support the channel:
    www.paypal.com...
    In this mini series i will show how to get our character into ragdoll and back again while still keeping our collision capsule at the location of the mesh.
    I use UE4.10 but use the animations from UE4.11 to get rid of the animation dip later on.

КОМЕНТАРІ • 58

  • @TomSoundsGood
    @TomSoundsGood 8 років тому +2

    Thanks a lot Jonas! This was super rad! I was quickly able to ragdoll working with my endless runner game; much appreciated!

  • @HDbacon
    @HDbacon 10 місяців тому +1

    Massive thanks! So this is a bit out of date, could be a better way I assume these days but I don't care it does what I need it to do.
    Few name changes though (I'm using UE5) (the yellow add box is simply just called "add" and the set all bodies nodes now have an extra option (I have mine ticked, not sure if it makes a different or not).
    Also a mistake I was doing is (my model's not perfected nor rigged by myself) but my model didn't have a pelvis bone/anything. So when I was doing this video step by step it was simply launching my character into the ground (through it) and hitting a respawn trigger I had lol. I went insane wondering what was going on until I did it bit by bit, tested the code out like you did in the video and going yep perfect but 2nd time redoing it all, I typed in Hips...and it worked..I tested the theory of putting pelvis back in..and yep...all that code runs even when you don't have something named pelvis (I thought it would come up with an error message).

  • @Doky
    @Doky 8 років тому

    Awesome tutorial. Thank you.

  • @la_dragonstudios2670
    @la_dragonstudios2670 5 років тому

    wow this is great! this is my first time using ue4, and I wanted to learn blueprint so I said I will learn to make a ragdoll of course it took some outside the box think because I have a different version but all came out well thankyou for your help sir!

  • @gang-ridertv5433
    @gang-ridertv5433 7 років тому

    YES! This helps my senior seminar.

  • @toiler1
    @toiler1 8 років тому +2

    I think instead of attaching capsule to mesh on event tick, you should do it by function timer, it's better optimise-wise. Other than that, good video.

  • @MrGothic13d
    @MrGothic13d 4 роки тому +1

    Thank you for the tutorial :D I was able to do the ragdolls using this ^-^

  • @DJL3G3ND
    @DJL3G3ND 7 років тому

    Thanks man!!! Took a long time but was really worth it, works just fine!!!
    EDIT: Well one thing I want to fix. The character spawns in the ground when he gets back up but he can easily jump out again, just for a more professional look I would like to know how to make him spawn on the surface. Thanks in advance!

  • @chiwabox
    @chiwabox 3 роки тому +1

    If someone is having the problem that makes the mesh fly away with your capsule, try getting the world location of your mesh instead get socket location, it worked for me

  • @ikkyino
    @ikkyino 9 місяців тому +1

    I love you.

  • @NocturnalJin
    @NocturnalJin 8 років тому

    Once again, you have what I need. :)

  • @DJM3D
    @DJM3D 4 роки тому

    Very helpful, thanks!

  • @SirSimon-xu4ik
    @SirSimon-xu4ik 7 років тому +1

    Amazing tutorial..thanks

  • @SinspaW
    @SinspaW 8 років тому +1

    Thanks for the tutorial, but I really wished you had started this from scratch with another model. It's really tough to re-configure your own model to have good constraints like the default one, and it would've been nice to have seen that.

  • @BaseRealityVR
    @BaseRealityVR 7 років тому

    Awesome stuff !

  • @MikeBourbeau
    @MikeBourbeau 7 років тому +1

    Hey Jonas, have you tried messing with breaking constraints and using the physics blend? I got the same results as you (upper body and lower body separates), but instead of snapping back together I'd like the broken off rigid bodies to remain broken. Great tutorials!

  • @MotorGoblin
    @MotorGoblin 3 роки тому

    Thank you!

  • @la_dragonstudios2670
    @la_dragonstudios2670 5 років тому

    hey guys, if your using version 4.21 and you cant find (inputAction interact) use the same input that makes the character jump which is (inputAction Jump) basically it is saying when character jumps ragdoll.
    Also there is no need for that SETTINGS>INPUT in version 4.21 its automatically added, and if you remove it and add it again it breaks your entire project.

  • @SolidCloudDR
    @SolidCloudDR 4 роки тому

    Thanks!

  • @MushroomFleet
    @MushroomFleet 7 років тому

    Hi Dude! Great video - just thought i'd mention that the "Attach to" is deprecated.
    Must use "Attach To Component" now. Seems to still work ok, but might be worth a poke as there are new options in the pins :D

    • @jonasmlgaard8884
      @jonasmlgaard8884  7 років тому

      Shogunate Tom jup i know.. the video is also over 1 year old, back then it wasnt deprecated as i recall. Havent revisited this setup to update it. But thx for pointing out.

  • @lz4090
    @lz4090 2 роки тому

    Nice. Just saw this. Very timely with my project which i am trying to add physical animations and ragdoll on my channel. You think you could make an updated version with physical animations? 🙂 thank you

  • @coreragestudios3430
    @coreragestudios3430 2 місяці тому +2

    who's here in 2024... it's still working in August 🙏

  • @Pablo1517
    @Pablo1517 6 років тому +4

    Doesnt work in 4.18
    When I call simulate physics and all the functions you do, my character simply is not ragdolling. It just controls as normal

    • @NotSoAccurate
      @NotSoAccurate 5 років тому

      You may have to go into the skeletal mesh's physics asset, select all colliders, set "physics type" to "simulated"

    • @matteoclementi
      @matteoclementi 4 роки тому

      @@NotSoAccurate please can you explain it a little bit more, what you mean with ",select all colliders, set "physics type" to "simulated""

  • @cosmosgames978
    @cosmosgames978 7 років тому +5

    Houston we have a problem?Using this code after i kill AI it follows me, please help.

    •  6 років тому +1

      set up a new behavior for when he's dead?

  • @Sandium
    @Sandium 7 років тому +3

    Can you send me a link for a download to all of the files you edited or made? Because when I try (over a total of 5 times now)
    To do what you are doing I somehow managed to screw up everything.

    • @reaper1414
      @reaper1414 7 років тому

      Ever figure out how to fix this? I am currently having the same problem

    • @Sandium
      @Sandium 7 років тому

      Curtis Soto not yet :(

    • @vladyslavtkachuk4457
      @vladyslavtkachuk4457 6 років тому

      Thanks a lot!

  • @CreativeOven
    @CreativeOven 2 роки тому

    Left handed? OMG it Is hard....

  • @AlexM-xr4rc
    @AlexM-xr4rc 7 років тому

    Would a teleport node work instead of a set world location node? If so, what is the difference between each node? Thanks!

  • @noxabellus
    @noxabellus 8 років тому

    Thanks for this I was super confused as to what was happening when I was trying to work this out on my own. Is there a way to do all of those resets when you reattach, without introducing a bunch of static variables? Like, can we get the initial offset dynamically somehow?

    • @jonasmlgaard8884
      @jonasmlgaard8884  8 років тому

      +noxabellus Hi there, im not sure i understand fully what you mean by bunch of static variables? Can you ellaborate a bit on that, and i'll see if i can answer.

    • @noxabellus
      @noxabellus 8 років тому

      +Jonas Mølgaard well I really just mean those offsets for position and rotation. I guess it really isn't a big deal since the system will probably be limited to the same base character model, but it would be more elegant, to me, if those offsets were looked up rather than just typing them into the blue print

    • @jonasmlgaard8884
      @jonasmlgaard8884  8 років тому

      +noxabellus the halfheight of the capsule = 97 can be saved into a variable at construct or begin play i guess and in regard of the rotation its kinda the same. It might not be needed if you dont use the thirdperson example project, but since i did and it has this rotation initially, i needed a rotation offset.

  • @literalacorn8523
    @literalacorn8523 5 років тому

    So this probably came about with an update over the years, but if I follow this, I can't actually control the character once they are restored. Any ideas?

  • @Malborooo27
    @Malborooo27 8 років тому

    Why in my editor there is no Interact InputAction ??

  • @mdmdesigns398
    @mdmdesigns398 8 років тому +3

    Hi Jonas. Thanks for the tutorial. But you lost me early at 1:27. Where did you get the "InputAction Interact" component from? (I imagine I have to create it as I don't have one in version 4.10.4)

    • @mdmdesigns398
      @mdmdesigns398 8 років тому +2

      +MDM Designs | Disregard, I figured it out...that you have to create a new key binding under SETTINGS, PROJECT SETTINGS, INPUT, and then create a new ACTION MAPPING by pressing the plus symbol and calling it "Interact" and then assign a key.

    • @jonasmlgaard8884
      @jonasmlgaard8884  8 років тому

      +MDM Designs correct yes and sorry for skipping past that

  • @soorenaasl9519
    @soorenaasl9519 8 років тому

    so why you import that?

  • @Bear-Shark
    @Bear-Shark 4 роки тому

    When i press the ragdoll button when you are getting the capsule component location at 7:28, my character goes flying into the sky, any help.

    • @GreenKatok1254
      @GreenKatok1254 9 місяців тому

      Perhaps this is due to the fact that you use Set All Bodies twice below Simulate Physical
      Make sure you disabled it when you copied the code to add a grid restore after Regdoll

  • @soorenaasl9519
    @soorenaasl9519 8 років тому

    how can I find the JOMES input setting.ini

    • @jonasmlgaard8884
      @jonasmlgaard8884  8 років тому

      you don't need it. It is just a settings.ini file i created a copy of, so i don't have to remap my bindings from asdw to jkli keyboard layout.

  • @frinky
    @frinky 7 років тому

    redo this with physical animation i just made a active ragdoll!

    • @jonasmlgaard8884
      @jonasmlgaard8884  7 років тому

      It's on my todo list, but if you've done it, care to share how you did it?

    • @frinky
      @frinky 7 років тому

      yep,
      ok,
      first i went into my editor for the default mannequin and made this code
      pastebin.com/QwQ10eVE
      basicly if you press e it goes ragdoll,
      after that you just put play animation after it and it works great.

    • @jonasmlgaard8884
      @jonasmlgaard8884  7 років тому

      VeryImportantDugong i'll check it out later once i've had a chance to read up on physics animations. Thanks for sharing

    • @DJL3G3ND
      @DJL3G3ND 7 років тому

      Hi I watched your videos lol

  • @marleybishop9649
    @marleybishop9649 7 років тому +2

    see.. when I try to do it, my character flies all over the place in ragdoll

    • @boots3455
      @boots3455 6 років тому

      Marley Bishop same

    • @madwlad799
      @madwlad799 5 років тому

      I know this is old, but if someone has the same problem, it probably the physics present on you skeleton, disable collision on neighboring bodies so they don't push eachother arround

  • @spt.1988
    @spt.1988 8 років тому

    Thank you!