How to build a Character Rig and State Machine for Procedural Animation | Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • Learn how to rig a character and start programming a state machine for procedural animation in Unity! This tutorial takes a deep dive into two of the constraints of the animation rigging packages and teaches you how to apply them to your own game characters for procedural animation. We'll also start the programming a state machine for procedural environment interactions using our reusable state manager implementation!
    SUPPORT THE CHANNEL AND GET EXCLUSIVE PERKS:
    💛 / iheartgamedev (Project Files Available)
    ❤️ ruclips.net/user/iHeartGameDev...
    WANT MORE?
    ✦ Missed out on the last episode?
    • How to Move Characters...
    ✦ Like the vid? Please consider Subscribing!
    bit.ly/2YdIb6j
    ✅ Check out the full procedural animation series: • Animation Rigging Package
    SOCIAL:
    ✦ Discord
    / discord
    ✦ Twitter
    / iheartgamedev
    ►TIMESTAMPS:
    Intro: 0:00
    Building a character rig: 0:20
    First constraint: 0:49
    Second constraint: 4:19
    Environment Interaction State Machine: 6:25
    Safeguarding with Assertions: 10:08
    Question to the community: 11:54
    #unity3d #proceduralanimation #gamedev

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

  • @crummymudd8625
    @crummymudd8625 6 месяцев назад +23

    I spent a few months trying to use constraints from some other random video and searching through Unity docs. Your videos are awesome because they go from nothing to something in an organized, step-be-step approach, with detailed explanations for other things that might vary ('your model might need different offsets', 'the CharacterController will work too'). 13 minutes -- now it all makes sense. Enums as a bonus! Like your enthusiasm and positive attitude, very inspiring. What I'd like to see -- if you click one of the blue bone renders, how do you get the Hierarchy to expand to it? I have to type in the bone name, one click would be faster

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +7

      This is my favorite comment so far. Thank you! The amount of time that goes into editing is worth it for compliments like this.

    • @PixelGM
      @PixelGM 6 месяцев назад +2

      I agree with you! He's the best! 👌👌❤️

  • @ajmckennan1663
    @ajmckennan1663 6 месяцев назад +18

    Actually the smartest and best Dev content on RUclips! Two months was way too long for another one of these!

  • @iHeartGameDev
    @iHeartGameDev  6 месяцев назад +13

    ✨ More procedural animation content is finally here! Let's dive into animation rigging in Unity and set up the constraints necessary for environment interactions! What procedural animation projects would you want to see in the future? Let me know in a comment below!
    The project files for anyone who wants to get hands on the project without building the whole thing yourself: www.patreon.com/posts/project-files-in-93861078
    Smash that like button if you can't wait to learn!
    Cheers!🍻
    -Nicky

  • @lolopupka
    @lolopupka 6 месяцев назад +4

    Awesome video! I'm an asset store publisher, and I made a procedural animation package, and I still found a lot of interesting information in your videos!

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +2

      Awesome! Thank you loopupka! What package did you make??

  • @kenan-nynor
    @kenan-nynor 4 месяца назад +3

    I was already hyped for this video as soon as I saw the community post, but I didn't know it would be this easy :p

  • @rorysullivan2769
    @rorysullivan2769 3 месяца назад

    Very helpful! Feel like after watching this I actually understand how its working and its not just a tutorial where you copy and paste.

  • @seesooner3112
    @seesooner3112 6 месяцев назад +7

    Nice bro i was looking for it and suddenly you posted this video great work❤

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +2

      I love to hear that! Thank you for the support! :D

  • @__--_--_-----
    @__--_--_----- 6 месяцев назад +4

    Another absolute banger, thanks for setting the standards so high for dev tutorials!

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Thanks for such kind words! Means a lot! -Nicky

  • @Hoptronics
    @Hoptronics Месяц назад

    Using preview has been a godsend.. what a great tip.

  • @edistefi3925
    @edistefi3925 6 месяцев назад +5

    We waited so long for this video, please upload more about procedural animations, our dev team is struggling

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +2

      What other procedural animation projects would you be interested in seeing?

    • @edistefi3925
      @edistefi3925 6 месяцев назад +4

      @@iHeartGameDev for example, climbing a ladder, punching in the direction where the character is looking

  • @DeadHandRed
    @DeadHandRed 6 месяцев назад +7

    Nice one, looking foward to it, ta

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      See you in a few hours at launch!!

  • @PotatoManager420
    @PotatoManager420 6 месяцев назад +1

    Thank you for putting such neat details like checkmarks in the video
    Much appreciate your efforts in your tutorials - they are really educating
    I learned Unity a lot from your videos very fast

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Thanks so much, PotatoManager420! I’m glad they help you 😊

  • @jorgemedina8497
    @jorgemedina8497 6 месяцев назад +1

    Awesome content, it’s great how you explain how things work in detail, not everyone takes the time to do that.

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Thank you! It does take a lot of time, but when people appreciate it, then it tells me that it’s worth it!

  • @ssbmPi
    @ssbmPi 6 месяцев назад +1

    perfect timing i just got to the point of trying to rig up my character model, thanks for great content :)

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Awesome to hear! I hope your project is coming along nicely!

  • @AlexBlackfrost
    @AlexBlackfrost 6 месяцев назад +1

    I'm enjoying the procedural animation series a lot 😎

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      Thank you Alex! One day the whole thing will be complete 😅

  • @CosmicComputer
    @CosmicComputer 6 месяцев назад +1

    man I wish we had you making content on the unreal side :D great video!

  • @Diablokiller999
    @Diablokiller999 6 месяцев назад +1

    Seeing this I wonder how I came up with something way more complicated that still isn't done yet and giving me headaches! Will refactor it asap, thanks a lot!

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      Awesome to hear! I hope you can share it!

  • @birahe1810
    @birahe1810 6 месяцев назад +2

    You really should upload more videos. We need you! It would be perfect if you could create a "root motion based locomotion" tutorials, which will have basics from AAA games, such as basic walk/run/sprint, start/stop movement, rotating in place, leaning to input, turning based on input changes (for example if we are going forward and press backwards key)

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      Thank you for the support. I’d love to make more videos. Time is my number one opponent these days 😅

  •  6 месяцев назад +1

    *Love It* ❤

  • @bifrostbeberast3246
    @bifrostbeberast3246 5 месяцев назад

    Awesome! Is the next episode already in the making? I love you videos!

  • @RapidTech
    @RapidTech 6 месяцев назад

    This sires is too fun!

  • @adventureman6997
    @adventureman6997 Месяц назад

    Im going to use this in a game

  • @jonaswidmark1806
    @jonaswidmark1806 Месяц назад

    Great tutorial! Is there an estimated date for the next one?

  • @ps5games821
    @ps5games821 6 месяцев назад +2

    great video

  • @npatch
    @npatch 6 месяцев назад +1

    In case you mentioned it, ignore, but the order of components in a rig is of importance. Which is why having the multirotational component after the twoboneIK works correctly. Had you had the IK afterwards, the IK would either override the result or have a different starting point (fuzzy on that one, haven't touched animation rigging in over a year)

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      This is a good point! I’m not sure if I’ve ever mentioned it in my videos, but you are certainly correct!

  • @BbVortexMortinghan
    @BbVortexMortinghan 6 месяцев назад +2

    Great video Nicky, keep it up! I really like Jason's content but Brackey's left such a void (not his fault), and you are really stepping up and I appreciate you.
    I hope I can create some game dev content next year. Your content is really good.

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +3

      Hey thank you for such kind words! Tbh these videos have taken me longer than I expected and there’s still a good amount to go which can be disheartening… especially when they aren’t performing incredibly well. But stuff like this make me feel like I’m helping the community and that’s made the time easier.

    • @Hoptronics
      @Hoptronics Месяц назад

      ​@@iHeartGameDev, Please, definitely keep going. In the past week I started using Unity. I made a terrain, imported some characters, a fps character controller and then got stuck on trying to make home move. I spent the better part of the day trying to figure it out. So confusing. Then I found your video. I've watched the first half of this many times in the last few hours and now I have a palms up character to mess around with tomorrow for the 2nd 1/2 of the video. I'm gonna go ahead and watch the last 1/2 tonight but after 2 crashes today, I rebooted and am calling it a night. I lost my work both times 😢 Thank you for the effort!

  • @Maskeowl
    @Maskeowl 6 месяцев назад +1

    took time but worth it

  • @lishnor
    @lishnor 6 месяцев назад +1

    Great video! I have a question, Is there an easy way to add to arm IK shoulder movement because, without that movements seem to be stiff and unnatural?

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Hey there! Thanks for watching! I feel like this can be handled with an additional constraint! Like adding a multirotation constraint to the torso so that it twists in the direction of the wall or something along those lines. That's the cool thing about procedural animation is that it's all controlled by code, which means that your imagination is the limit!

  • @howii7292
    @howii7292 6 месяцев назад +8

    I am on pins and needles

  • @FriendlyNeighborhoodCJ
    @FriendlyNeighborhoodCJ 6 месяцев назад +3

    Great video as always but are we gonna wait another few months for the next video about procedural animation?

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +3

      Thanks so much! I'll try my best to get the next out faster!!

    • @FriendlyNeighborhoodCJ
      @FriendlyNeighborhoodCJ 6 месяцев назад +2

      Awesome. I'm really looking forward to the next video@@iHeartGameDev

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад +1

      @@FriendlyNeighborhoodCJ Thank you!!

  • @cross-y1462
    @cross-y1462 2 месяца назад +1

    You can make a video, but for feet ik for slopes?
    Also nice video 👍

  • @yours_indie_game_dev
    @yours_indie_game_dev 6 месяцев назад

    is it possible to use perlinnoise with this topic an how would you implement it

  • @weweqewwqe
    @weweqewwqe 5 месяцев назад +1

    Please make Video about ik system in unity

  • @RamblingRhinoceross
    @RamblingRhinoceross 5 месяцев назад

    I’m thinking of doing game dev, because I understand most of the elements for basic coding and programming. but I’ve only done them with scratch and I’m not sure what to do.

  • @csr3846
    @csr3846 3 месяца назад

    I missed the part where you create your bananmans walking animation

  • @Norbingel
    @Norbingel 6 месяцев назад +1

    Hi! Since nobody else I've asked has tried, would you consider making a Snake Pass-type of snake movement?

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      I’m not sure what snake pass is!

    • @Norbingel
      @Norbingel 6 месяцев назад

      @@iHeartGameDev It was GMTK/Mark Brown's most Inventive game 5 years ago. Here's his video on it talking about the movement:
      ruclips.net/video/4NNPr2Ay4OM/видео.html&ab_channel=GameMaker%27sToolkit

    • @Norbingel
      @Norbingel 6 месяцев назад

      @@iHeartGameDev I've asked several of the big "copy game mechanics" channels, a few have responded, but none have actually done it.

  • @drmeatball124
    @drmeatball124 3 месяца назад

    TY for the tutorial, but this is the first one in the series that has a showstopper for me..
    The type or namespace name 'StateManager' could not be found (are you missing a using directive or an assembly reference?)

    • @drmeatball124
      @drmeatball124 3 месяца назад

      I rewatched the video and I see the Base Folder that has those scripts, where did they come from?

  • @garrettdehart4988
    @garrettdehart4988 5 месяцев назад

    updates for the next part anytime soon?

  • @roninmbattousai
    @roninmbattousai 5 месяцев назад

    Good video overall, just one comment though, there is no common naming suggestion for enums other than to use PascalCase in c# documentation (afaik). Not sure if this an opinionated naming scheme you've encountered (or maybe overlapped from some C++/Unreal stuff where prefixing is more commonly suggested), but just a callout (i've worked on a lot of different code bases and both microsoft and the local teams have never used E to denote it as a prefix ((if anything we are more likely to encounter someone using a common suffix like "Type" or "State/Status" to denote enum in comparison to a "Model" for a class of properties for data exchange)). Only wanted to notate it to make sure that idiomatic code is taught (or pointed out if a preference for your own codebase).

  • @cinnabonjazz4434
    @cinnabonjazz4434 5 месяцев назад

    Could I possibly do this in UE5???

  • @mohamedmusthafa1057
    @mohamedmusthafa1057 6 месяцев назад +2

    What about fingers Do we animate manually?

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      If they are not in an open position, yes, you'd have to manually open them up!

  • @dangerClose-ij4fj
    @dangerClose-ij4fj 4 месяца назад

    I don't understand how we will manage our states behaviour on the base of inputs.
    like the new state that we create should work on any input and should stop when we left that input.

  • @user-py7ep3wm8n
    @user-py7ep3wm8n 6 месяцев назад +1

    this feels too much but I think I'm gonna try it anyway

    • @iHeartGameDev
      @iHeartGameDev  6 месяцев назад

      Give it your best shot! Trying is the first step to success!

  • @WisdomHellOfficial
    @WisdomHellOfficial 4 месяца назад +1

    Can you create a mobile touch controller using starter assets, please mam because starter assets not provided a better touch controller for looking. So, please Can make my dream tutorial please😢😢😢

  • @Coding-mj2dv
    @Coding-mj2dv 6 месяцев назад

    Hi, I saw this video of yours and it was very useful for me, thank you, but can use the same video instead of the buttons use joystick for android please thank you، I've been in this deadlock for months، Iam waiting for you.

  • @ChanelName
    @ChanelName Месяц назад

    Where is the code, Lebovski?

  • @WisdomHellOfficial
    @WisdomHellOfficial 4 месяца назад +1

    please brother i need it

  • @WisdomHellOfficial
    @WisdomHellOfficial 4 месяца назад +1

    Brother please make a tutorial with full screen touch FPS control using new starter assets and in third person please. Till now no one has made this tutorial on RUclips. And brother, I need it very much now and I tried to make it but I could not make it. Please tell me what are you doing brother? 😭😭😭 Please I need this. Like Pubg, Free firee and other games touch look controller.

  • @syedmeesumalizaidi2152
    @syedmeesumalizaidi2152 6 месяцев назад +1

    are you brother or cousin of www.youtube.com/@samyam (samyam) ? 😅

  • @newdiary6978
    @newdiary6978 6 месяцев назад

    I hope you could have more time to upload. 2 months is too long. Hehe

  • @advrakshachaudhari3699
    @advrakshachaudhari3699 6 месяцев назад

    who else thinks that he looks like CHARLIE PUTH. coz he absolutely does. Wait! Are you charlie puth ?

  • @WisdomHellOfficial
    @WisdomHellOfficial 4 месяца назад +1

    It will only take you 10 minutes to make this.

  • @mohokhachai
    @mohokhachai 5 месяцев назад

    FK