UE4 Rope using Bones and Physics Constraints in Unreal Engine 4 & Blender Chain Tutorial How To

Поделиться
HTML-код
  • Опубликовано: 1 фев 2025

Комментарии • 142

  • @f4483
    @f4483 2 года назад +18

    Great tutorial, kudos! A piece of advice for folks following this on UE5. Your biggest friend to stabilize the rope is going to be the capsules "inertia tensor scale". Bump it to 10 for a stable rope (default is 1).

  • @m0rph3u5.
    @m0rph3u5. 11 месяцев назад +2

    Without anydoubt Lusiogenic's channel, is the bible of Unreal engine's physics... another great well explained tutorial that covers everythin

  • @NitrogenDev
    @NitrogenDev 6 лет назад +3

    So close to 300 mate! They grow so fast! XD

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      Let's hope so! You're not too far away either. :)

    • @Yovry
      @Yovry 4 года назад

      Over 3I now

  • @zyfragz5959
    @zyfragz5959 Год назад

    Omg !!!, Finally i found tutorial to grab a bone !!! Thank you so much mann

  • @reerjgiorge
    @reerjgiorge 6 лет назад +11

    Thanks, for using Blender to do it. I really hate 3ds max and maya lol. Thanks for another useful tutorial.

    • @Lusiogenic
      @Lusiogenic  6 лет назад +3

      I understand, me too. :) You're welcome.

  • @senchi3836
    @senchi3836 5 лет назад +1

    One of the best tutorials about rigging for the beginners! Good job ! Thanks !

    • @IamNeighborlee
      @IamNeighborlee 3 года назад

      except its not working in blender 3. Snap to vertex is doing nothing.

  • @LutherThie
    @LutherThie 3 года назад

    Thank you! This is best tutorial making an articulated mesh actor with physics i have found. all the steps work, grateful.

  • @doug_richardson
    @doug_richardson 3 года назад +12

    The warning about no smoothing groups during import into UE4 is because you chose "Compute Normals" instead of "Import Normals".

  • @HaselnussWaffel
    @HaselnussWaffel 6 лет назад +2

    Your tutorials are awesome, thank you for making them!

  • @thqp
    @thqp 3 года назад +1

    My physics assests Capsules are massive and can't be scaled down, and it's causing a bunch of buggy behaviour. I'm using Blender 2.81 with UE 4.22
    Also messing around with blenders Unit scales and what not does not seem to fix the problem at all :/ You have any tips on how to fix this?

  • @omegablast2002
    @omegablast2002 4 года назад

    freaking outstanding tutorial!!!!

  • @suzukito
    @suzukito 3 года назад

    your channel is amazing

  • @noprotox
    @noprotox 6 лет назад

    Very good tutorial ! Continu

  • @MrPangahas
    @MrPangahas 6 лет назад +1

    Can you please do a tutorial on how to setup IK for bipeds and quadrupeds or even multilegged creatures?

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      I've not worked with IK yet. I'll have to look into that. I'll put it on the list.

  • @iRedCraft
    @iRedCraft 4 года назад +2

    Hey, awesome tutorial, much better than the cable component :) I have a problem attaching the skeletal mesh cable to two other actors though. I'm using it as a cable between two plugs, so the hirarchy is
    Plug1
    + Cable skeletal mesh
    + Plug2 (attached to a socket "CableEnd" which I configured in the skeletal mesh)
    All components have physics simulation and collision enabled, but once I start simulating, the three components just fall apart and aren't attached to each other. Any idea? Thanks!

    • @ParadoxISPower
      @ParadoxISPower 2 года назад +1

      The ends need to be kinematic, or they will fall every time.

  • @AlexJamesDean
    @AlexJamesDean 3 года назад +1

    I don't understand. whenevr I export I get 1 bone in my physics despite setting up multiple. I just want to create a simple flapper :(

    • @viktorianskiy27
      @viktorianskiy27 2 года назад

      in the skeletal mesh, increase the value

    • @Darkyll
      @Darkyll 2 года назад

      Have you found a solution?

    • @viktorianskiy27
      @viktorianskiy27 2 года назад

      @@Darkyll After all, it didn't work out for me as they say in the tutorial. That's why I just made a rope on a spline)

    • @bomi
      @bomi 2 года назад

      @@Darkyll 1. Delete everything in the "Skeleton Tree",
      2. Set "Min bone size" to 1.0
      3. press "Re-generate Buddies"

  • @dbarr49
    @dbarr49 4 года назад +1

    Is there a way to make a variable size rope and have it act in a similar fashion?

    • @Lusiogenic
      @Lusiogenic  4 года назад

      I was thinkig to do that. Theoretically, it all takes a single piece of string that you duplicate and stitch together.
      The most important thing is to stitch it together with sockets.
      I might make a tutorial on this. We'll see.

  • @leonardm6736
    @leonardm6736 Год назад

    Can you set / attach the start and end location like the cable Component and can you get set the length of the rope

  • @andresmouro7565
    @andresmouro7565 9 месяцев назад

    Hey man! Awesome tutorial, I'm having an issue where when I create the bodies for the bones, it just creates 1 giant bone in the middle of the rope and creates really small and wrongly rotated bodies for the other bones. Any ideas how to fix it?

  • @kotarosdevgame
    @kotarosdevgame 3 года назад

    Thanks much for your helpfull Tutorials, just a question again by the side i try to figure out to snap back the rope like a spring as like in Wrestling or Boxing Rings .
    The rope are fine but it doesnt snap back fast while my Character goes away from it. Did you have any idea i play with every Settings in the PhysicAsset Hours but no luck.

  • @malcriado3d
    @malcriado3d 6 лет назад +1

    Thanks for the tutorial Luisogenic! can you elaborate how did you attach the cubes to the rope that appear at 16:30 thanks!

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      You can simply use a Physics Constraint Actor for that. Just make sure that, for the rope, you fill in the bone name that you want to connect to. It needs that because it's a skeletal mesh.
      Check out this screenshot drive.google.com/open?id=1cNFLbF7ZvcC8Q17QFv6GFQgDjYX8VGwi
      The rules of the constraints can be whatever you want, but for simplicity you could just lock rotation and translation for all axes.
      Please note that the relative position between the two elements before running the game will be considered as the reference.

    • @malcriado3d
      @malcriado3d 6 лет назад

      Sorry to bother you but i cant lock position and rotation on the constraints. Everytime i pick the cubes from each side i have like a separation from where the bone and cubes are...

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      I'm not sure I understand what's not working, but I will be doing a quick tutorial on this.
      It'll probably be up tomorrow, so stay tuned.

    • @malcriado3d
      @malcriado3d 6 лет назад

      @@Lusiogenic thanks mate!

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      Here's a video in which I explain thoroughly how to connect the rope to an object: ruclips.net/video/uHV6VHzPqxM/видео.html

  • @remon563
    @remon563 3 года назад

    great tutorial mate. How would we go around to "cut" a rope ?

    • @Lusiogenic
      @Lusiogenic  3 года назад

      In this version, you can't.
      What you have to do is make very short piece of rope with only two segments and only one Physics Constraint connecting them.
      Then you duplicate those parts and stick them together using sockets.
      Then you can detatch them wherever you want to "cut" the rope.
      I wanted to make a tutorial on this. Maybe I will, we'll see. It's quite simple to do.

  • @justVontadeh
    @justVontadeh 4 года назад

    Hi! I was wondering if it would be possible to do this inside an Actor BP? I want to make a grabbable rope but I'm not having any luck making it simulate inside an actor. Any ideas? Thanks for the tut!

    • @Lusiogenic
      @Lusiogenic  4 года назад +2

      Yes, just create a new actor and add to it a Skeletal Mesh component that uses the Rope skeletal mesh. Than, you can simply use it inside the actor.

  • @zondax7628
    @zondax7628 5 лет назад +1

    i followed your rope tutorial and everything worked perfectly, but i'm having a problem that after i scale down the rope, it starts acting funky whenever it collides with an object. any advice on how i can scale down the rope and still maintain its physics?

    • @jayjaygolden5123
      @jayjaygolden5123 4 года назад +1

      dont. scaling in engine is often a bad idea. Scale it in your modeling software instead.

  • @mushudamaschin2608
    @mushudamaschin2608 9 месяцев назад

    How does the last of us 2 make a super long rope then thay looks physics based? That you can hang off of and wrap around things (a bit similar to the hands cables in poppy playtime as well)

  • @hosseinteimouri9369
    @hosseinteimouri9369 3 года назад

    Thank you , how can change this chain ? i want use for hook spell like Pudge in Dota2

  • @KeepMeReady
    @KeepMeReady 4 года назад

    woow !! Your tutorials are the best !! Is it possible that the rope can be replicated in multiplayer? How could I do it? I have been testing the configuration of the rope between two cubes, all the replication configured in the three components and in the clients does not work ... Could you help me? and in case of not being able to replicate, as I do so that each of the clients calculates the physics of the string separately without replication.
    Many thanks

  • @ВасилийЗипунников-н8ь

    I liked it very much, thanks for the video. But please explain to me how you attached the rope to the cube? Is this done in Blender or in the engine itself? Can this Blueprint?

  • @PartigradeCannon
    @PartigradeCannon Год назад

    How are you connecting the boxes to the rope?

  • @flexcg675
    @flexcg675 Год назад

    THANK YOU BRO!!!

  • @cancermind
    @cancermind Год назад

    Does anyone know if I would like to do a whole rope bridge including rope and mechanics that let you shoot the rope, would I do the whole bridge in a single blueprint? or make ropes separately and then somehow add physics constraints between different blueprints?

  • @Romeo615Videos
    @Romeo615Videos 3 года назад

    could you help me make a gold chain for the metahumans?
    I have the mesh

  • @NeikarNR
    @NeikarNR Год назад

    Can you somehow set diffrient length of that rope?

  • @monoham1
    @monoham1 4 года назад

    does CCD just not work because its like quantum physics and if you just add millions of bodies it will average out to be like normal physics or is something else going on like cumulative error or something?

  • @RedStallion2000
    @RedStallion2000 5 лет назад

    Hi Andre,
    Great tutorial! Thanks for it. Just wondering if you have any idea why Unreal Engine 4.24 crashes when I try to import either of the Rigged rope meshes you supplied as samples. Maybe I'm not using proper settings in the FBX Import Options window that pops up?
    Update 2/18/20: It seems that the crash may be due to a bug in UE 4.24 when you try to import an fbx that doesn't contain a material. Is there a chance you can add a material to one of the rigged rope meshes you supplied so that I can test your rope model?
    Thanks very much.
    Joe

  • @jackmann1478
    @jackmann1478 10 месяцев назад

    The mesh goes right through the character's hand on BeginPlay

  • @colinericburriss
    @colinericburriss 6 лет назад +1

    Can your rope be shaped to run as a conveyor belt or tractor treds?

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      You technically could, but I'm not sure it would actually work. You would have to put in too many segments. As the rope becomes more complex, it becomes more and more unstable.
      I've thought of doing this a lot of times, but I feel it has low probability of success.
      The point of making a conveyor belt (or pulleys, as another user asked) is so that you actually carry weights with them, but I don't see that happening with the current implementation of the physics constraints. That's because the force that an object applies gets scaled by its mass. So a piece of rope (which is really light) will not be able to pull an object of 50 kg, let's say. The only solution would be to make the rope heavy as well, but that introduces other problems. So it's a vicious circle.
      I can't think of a hack that would make this easier. If you do try it out, please post back the results, I'm very interested in this.

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      I just realized I didn't actually answer your question. Yes, you can shape the rope like that, simply by changing the mesh in a modeling software and changing the constraints to not bend sideways.
      But you would probably have to use it only for the visual representation because of the problems that I talked about in the previews comment.

  • @bartasus194
    @bartasus194 4 года назад

    Can you explain how to fix a rope to a point?

  • @nyxi6689
    @nyxi6689 6 лет назад +1

    do you know any good way to attach the player to the rope so he can swing??

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      Not really sure about that. Since the player character doesn't use physics, it's not as simple as using a physics constraint to link it to the rope.
      You will have to make a new movement mode and update its location relative to the movement of the specific bone of the rope that it's attached to.

    • @nyxi6689
      @nyxi6689 6 лет назад

      I managed to socket each constraint and I attach the player to each one and move him up and down the chain if he inputs W or S, the only thing left is that my character gets attached to the constraint through the capsule component ofc, and when the rope is swinging too much, the animation I had made for the player of him holding the rope gets offseted, as the capsule component always connects at the middle not the top where my player has his hands, do you know a way where I can attach the rope constraint to the hand of the mesh. Keep in mind no collision is placed for the player once he connects. Thanks a lot btw for your reply and your videos are amazing!

    • @nyxi6689
      @nyxi6689 6 лет назад

      And is it possible to maybe make 2 bones on the rope act like one so they act more like a straight line held by the character?

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      If you're using the Attach to Component function, make sure to set the Location, Rotation and Scale rules to Keep World. This will attach the player character to the rope's socket, but keep it's world location, so it will not be attached to the center of the capsule. Depending at what moment you trigger the attach, you might want to adjust the character's location in relation to the rope.
      Please note that the character will only collide using the capsule component, all other collisions will be ignored, including that of the skeletal mesh.

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      To keep the bones straight, you could put the constraint that's linking them to locked, both in linear and angular movement. Depending on the forces that will be applied to them, though, it might not stay really straight in some situations.
      The only other method I can think of is setting the bone to Physics Type: Kinematic, then updating its location continuously relative to its parent bone. But in this case, you would have to make a separate collision channel for the rope so that the kinematic bone doesn't collide with the simulated bone.

  • @toevlierpanosh6392
    @toevlierpanosh6392 6 лет назад

    Ive been trying to get this to work for so long now but inside an actor blueprint. i have a gun with a band hanging from it . It all works fine unless i run around with the gun, the band just remains floating in place... please help!

  • @ngontri9921
    @ngontri9921 4 года назад

    Can i do that with a armor chain mail, or should i go for baking?

  • @jackmann1478
    @jackmann1478 2 года назад

    What PM_Rope? Is that a separate tutorial?

  • @alexgriluk2270
    @alexgriluk2270 3 года назад

    the physical asset works, but the skeletal mesh is on the spot,why is this?

  • @spaceidiot200
    @spaceidiot200 3 года назад

    having bones parented under each other in a chain tends to cause precision issues that can lead to instability;
    as the chain has to continually calculate its positions based on all its parents movement.
    better to have all the joints in the chain parented under a single root, and let the physics bodies do the work of maintaining the chain.

    • @loremipsum3147
      @loremipsum3147 3 года назад

      I was thinking about this several days ago. Do you have any resource for this, that we can validate this theory?

    • @spaceidiot200
      @spaceidiot200 3 года назад

      @@loremipsum3147 not for Unreal specifically, sorry.
      This is more of a rule of thumb for me as I've had to create a lot of rope setups for animation or physics (sometimes both)

  • @AlexanderBasov
    @AlexanderBasov 4 года назад

    Incredible tutorial. Thanks!

  • @RWOproduction62000
    @RWOproduction62000 4 года назад

    I'm trying to attach both ends to my rope with cubes, am I missing something? can't figure it out

    • @Lusiogenic
      @Lusiogenic  4 года назад

      Try this tutorial: ruclips.net/video/uHV6VHzPqxM/видео.html

  • @jimbotht1091
    @jimbotht1091 5 лет назад

    Very interesting thank you

  • @azizkurtariciniz
    @azizkurtariciniz 5 лет назад

    How did you make that gravity gun that can control skeletal meshes?

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      Here's the tutorial for it: ruclips.net/video/irk5NAuFPMc/видео.html

  • @Darkyll
    @Darkyll 2 года назад

    Hello, I am in despair, I have followed everything exactly as in the tutorial, but whenever it then goes from Blender to U4 I have the problem that in the PhysicsAsset only one bone is there.
    Does anyone have a solution for this?
    I just want to have a light wobble for my project :(

    • @jtr0nic336
      @jtr0nic336 2 года назад

      I have a similar problem, the bones shown to have physics constraints is only a fraction of the total bones. Using blender 2.9 and ue5.

    • @jtr0nic336
      @jtr0nic336 2 года назад

      I figured it out. Just had to reduce the Min Bone Size according to the length of my rope.

  • @rushikeshbhandare8946
    @rushikeshbhandare8946 4 года назад

    Can we create stretchable rope
    If yes how

  • @KacperWons
    @KacperWons 6 лет назад

    Where did you get that physical material for rope? Or how did you make that?

    • @Lusiogenic
      @Lusiogenic  6 лет назад +1

      I've created the physical material myself. I forgot to show it in the video.
      Here's a screenshot of the settings: drive.google.com/open?id=1Kb97BO_AwJKjCrGQazVdEuAGQWi20VTV

  • @jahon8899
    @jahon8899 5 лет назад

    Thanks for tutorial.
    Will it work on Android device?

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      It should, if you have physics fully enabled. Not sure if it's somehow restricted on mobile, though.

  • @hdf6kr74j3d
    @hdf6kr74j3d Год назад

    Rope can created without bones if use only phys constraits

  • @plasid2
    @plasid2 4 года назад

    Hi how make cut this rope by gun bullet?

    • @Lusiogenic
      @Lusiogenic  4 года назад +2

      That is not possible with this implementation. It has to be constructed with sepparate segments of skeletal meshes that you can detach in certain points.
      I'm thinking of making a tutorial on this. I'll have to try to make it work first.

  • @m.kazemakhgary1336
    @m.kazemakhgary1336 5 лет назад +1

    Very good explanation. You are awesome! Substepping can make interactions between heavy objects and light objects more stable. I was disappointed by CableComponent. it doesn't interact with forces and is just for aesthetics. I made the rope in c++ instead by creating spheres in a loop and connecting them with physics constraint component.

    • @Lusiogenic
      @Lusiogenic  5 лет назад +1

      Thanks!
      Unfortunately, the cable component is calculated with particles, which run on the GPU. The physics run on the CPU.
      So, in order to make the cable component work with physics, a syncronization between the GPU and CPU would have to be made directly in the engine.

  • @manulaatapattu9478
    @manulaatapattu9478 2 года назад

    Noticed that in 5.1 the object colliding with a rope was pushed to one side. This was due to propagation.

  • @McHornet7
    @McHornet7 5 лет назад

    how do you make the cube hold the bone?

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      I've made a tutorial for that.
      Here it is: ruclips.net/video/uHV6VHzPqxM/видео.html

  • @edcatmull9253
    @edcatmull9253 3 года назад

    I love your videos! Is it possible to constrain a physics bone chain to the bone of another mesh? I want it to follow his keyframe animation. I tried doing this with constraints and specifying the joint, as per this video, but it isn't moving with the keyframe animation.

  • @wouwou9146
    @wouwou9146 6 лет назад

    What is this PM_Rope? What does it include?

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      It's a physical material. Check the video description to find out how to configure it.

    • @wouwou9146
      @wouwou9146 6 лет назад

      @@Lusiogenic Thank you. Keep up the good work. Your tutorials are helpful.

  • @BadLuckLex38
    @BadLuckLex38 5 лет назад

    Thanks for this, it really helped me get my chain working. I have another question though, how could I make this chain react to wind?

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      The wind works only for mesh deformation and particles, I think. It doesn't affect physics objects. You would have to implement it yourself.
      Have a loot at this tutorial ruclips.net/video/J9lVADyd8ZQ/видео.html it should help.

  • @ChuahTeongLeong
    @ChuahTeongLeong 5 лет назад

    Hi sorry to necro an old video, but could you share how you used the cursor to interact with the object dragging them around in Unreal's play mode? Thank you

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      There is. Here it is: ruclips.net/video/irk5NAuFPMc/видео.html
      I welcome comments on any of my videos. That's a good thing on RUclips. :)

  • @Lusiogenic
    @Lusiogenic  4 года назад

    How to attach the rope to an object: ruclips.net/video/uHV6VHzPqxM/видео.html
    Rope swing tutorial using Cable Component: ruclips.net/video/BT0jFArPtGM/видео.html

    • @pawprinting
      @pawprinting 4 года назад

      Is it possible for wind to effect these constraints?

    • @Lusiogenic
      @Lusiogenic  4 года назад

      @@pawprinting No, wind only affects mesh deformation.

    • @pawprinting
      @pawprinting 4 года назад

      @@Lusiogenic Yeah after some time I eventually figured that out. As it just so happens, UNREAL already has physics systems built in to specifically address all of these areas individually. I learned the differences between using Cloth, the Constraints and then even AnimDynamics which is best suited for rigs with wind animation.

  • @justbeyourself846
    @justbeyourself846 5 лет назад

    How you move them?

    • @Lusiogenic
      @Lusiogenic  5 лет назад

      Here's the tutorial for that: ruclips.net/video/irk5NAuFPMc/видео.html

  • @hiddenkonitsu9909
    @hiddenkonitsu9909 6 лет назад

    Rope theory ==> ⊙﹏⊙
    Thks for tutorial !

  • @marciosalvaya1710
    @marciosalvaya1710 6 лет назад

    Creat crane cable pleasa...

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      I've put it on the list for future tutorials. Thanks for the suggestion!

    • @Lusiogenic
      @Lusiogenic  6 лет назад

      I actually developed this during a live stream today ( www.twitch.tv/videos/334240827 ). I've implemented a proof of concept.
      Will have to polish it for tutorial.

  • @IamNeighborlee
    @IamNeighborlee 3 года назад

    This is almost four years old. You have to select , Use toa's ref pose, or you will get an error.

  • @curtisnewton895
    @curtisnewton895 Год назад

    physics setups like yours are to unstable to use in a video game

  • @UraNuSGM
    @UraNuSGM 3 года назад

    is nice video but dont show how conect the skeletals with phisical constraint actor = useless...

  • @insanecuckooman8342
    @insanecuckooman8342 4 года назад

    fucking blender changed the interface, i cannot find anything in it, cannot follow the tutorial.