Make your Animations DYNAMIC with Animation Rigging! (Unity Tutorial)

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2024

ความคิดเห็น • 243

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  2 ปีที่แล้ว +14

    ✅ Get the FULL course here at 80% OFF!! 🌍 unitycodemonkey.com/courseultimateoverview.php
    👍 Learn how to make BETTER games FASTER by using all the Unity Tools and Features at your disposal!
    💬 Let's learn how to use Unity Animation Rigging package which allows you to add dynamic logic on top of your animations.
    This is perfect for things like making your character look at a dynamic object (like the player or some item)
    Or use Two Bone IK to move the hand to grab an object.
    Or use the Aim constraint to make your character aim perfectly at a target.
    It's a very impressive package that will definitely help add tons of polish to your games and it's pretty easy to use.

  • @krawlak
    @krawlak 2 ปีที่แล้ว +26

    Thanks for the video! The offset is given as rotation, so the x, y and z are in degrees.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +13

      Oh is that what it is? Now that makes sense! Thanks for letting me know!

    • @ToniMussolini
      @ToniMussolini 6 หลายเดือนก่อน

      @@CodeMonkeyUnityhelp me i am using unity 2019.2.7f2 i can’t find the package “animation rigging” link for the store or web site to download package?

  • @nobodycares9579
    @nobodycares9579 9 หลายเดือนก่อน +1

    It would drive me crazy every time you would say "animationriggingpackage"! However, it helped me understand the package and it is very useful. Thank you!

  • @KalponicGames
    @KalponicGames 2 ปีที่แล้ว +26

    I guess it took a long time for you to make this. Appreciate the effort. Waiting for a course next year combing all these 3D tutorials and that 2D RPG stuff like inventory in a more guided path :)

  • @Nur-uy3dc
    @Nur-uy3dc 2 ปีที่แล้ว +1

    At last 😍😍😍 I was waiting for this. Thank you so much sir ❤️❤️

  • @one-ut2he
    @one-ut2he 11 หลายเดือนก่อน

    Thank you very much, I was able to find a video of the Unity animation after I saw your kitchen project, and it was very detailed. I've been looking for other places for a long time, but I can't get started.

  • @CodeStew
    @CodeStew ปีที่แล้ว +1

    This is really well documented. Took some random placeholder model and it looks to the position of the target object. Thanks!

  • @Maximple
    @Maximple 2 ปีที่แล้ว +9

    Great and comprehensive tutorial! (As always)

  • @jeremyrandall8282
    @jeremyrandall8282 2 ปีที่แล้ว +1

    Been waiting for this thank you

  • @lycagos1278
    @lycagos1278 2 ปีที่แล้ว +1

    perfect video, i didn;t expect so much and so easy info when i tried to watch it

  • @epicdoggames9667
    @epicdoggames9667 2 ปีที่แล้ว

    For anyone else who had trouble finding this package in the package manager, I had to click on the cog on the right-hand side of the package manager window. Under it, I selected Advanced Project Settings. You have to then Enable Preview Packages under the Advanced Settings of the Package Manager. At that point, Animation Rigging became available for selection in the package manager. I'm using Unity 2020.1.13f1.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      That's odd, version 1.0 is a verified version. Maybe it's because you're using 2020.1? Any specific reason you're using that version? You should probably be using 2020.3 LTS

    • @epicdoggames9667
      @epicdoggames9667 2 ปีที่แล้ว +1

      @@CodeMonkeyUnity Yeah I think that was the problem. DIdn't see any problems with the current version I was using. But I upgraded to the LTS version and Animation RIgging was no longer in preview mode.

  • @a3dadventure79
    @a3dadventure79 10 หลายเดือนก่อน

    as always, v grateful. such a powerful package, and fun too.

  • @TommyTheITGuy
    @TommyTheITGuy 2 ปีที่แล้ว +12

    Really wish I had a proper animator on my team.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +4

      With this package you can do quite a lot without having to create normal animations. I'm actually working on a video covering exactly that topic, how to use this to create animations without being an animator (just like I'm not)

    • @Mikelica69
      @Mikelica69 2 ปีที่แล้ว +4

      Mixamo!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +2

      @@Mikelica69 Yup Mixamo is also excellent!

    • @sejangamer
      @sejangamer 5 หลายเดือนก่อน

      I can't find any Tutorial on how to attach gun to player's hand and aim when right mouse button is pressed ​@@CodeMonkeyUnity

    • @averagecagemain
      @averagecagemain 3 หลายเดือนก่อน

      ​@@sejangamer You can just use animation blending and some Unity magic along with this package

  • @DrGroo
    @DrGroo ปีที่แล้ว

    Thanks for another great tutorial. I watched this back in the day, but finally am working on a project where hand IK constraints are very appropriate. So I've come back to watch again. Where better to learn about these things than the Code Monkey channel. 👍👍👍

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว

      Heh that's awesome! I'm glad the video helped you, best of luck with that project!

  • @moldman5694
    @moldman5694 5 หลายเดือนก่อน

    13:40 I think the offset here means an EulerAngle rotation offset in degrees, hence why -50 in X means looking up, and why 1 in Y barely does anything (it just turns the head by 1 degree)

  • @USBEN.
    @USBEN. 2 ปีที่แล้ว

    Such powerful beautiful package.

  • @Hiren24
    @Hiren24 2 ปีที่แล้ว +2

    🎉Finally🎉 a good tutorial on animation rigging... thanks☺️☺️ a lot buddy....love from India 🇮🇳🇮🇳

  • @justinwhite2725
    @justinwhite2725 2 ปีที่แล้ว +1

    Thanks! I've been wanting this since the UE5 trailers. I knew it was possible in unity but don't know exactly how.

  • @codesie4368
    @codesie4368 ปีที่แล้ว

    I think the most amazing thing about this is that all physics parts of this really advanced game engine is in its most basic form, simple math. It can produce amazing results but animations if you strip them down is just a TON of simple mathematical operations on top of eachother. Just a thought.

  • @ngng289
    @ngng289 2 ปีที่แล้ว

    Brilliantly explained

  • @salmanhaider14
    @salmanhaider14 2 ปีที่แล้ว +1

    I love you bro. You saved me 😭♥️

  • @plaidev
    @plaidev 2 ปีที่แล้ว +1

    13:13 I think the reason its behaving that way is because the offset is the rotation of the constrained object, not the position of the target.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +2

      Someone mentioned in another comment that the values in that vector are actually eulerAngles and I think that's the reason

  • @Californiagent
    @Californiagent 2 ปีที่แล้ว

    Just bought your course , thanks !

  • @КолянКоляныч-б1ь
    @КолянКоляныч-б1ь 2 ปีที่แล้ว

    Great, thanks. Now it remains to understand how to control the camera.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      The third person shooter is made just using cinemachine following a virtual point th-cam.com/video/FbM4CkqtOuA/w-d-xo.html

  • @lime_68
    @lime_68 2 ปีที่แล้ว

    Awesome! Finally you created it

  • @StigDesign
    @StigDesign 2 ปีที่แล้ว +6

    This is so Cool and Nice :D
    This is what i need to add to my Racing game hehe, to get a Driver to properly animate with the Steering-Wheel and live too if needed :)
    also to animate all other stuff wildlife etc but to also dynamic like this in animation :D
    btw nice background with starts is that included too?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +1

      Yup this would be perfect for steering wheel hands
      The skybox? It's from this pack assetstore.unity.com/packages/vfx/shaders/polyverse-skies-low-poly-skybox-shaders-104017

    • @StigDesign
      @StigDesign 2 ปีที่แล้ว

      @@CodeMonkeyUnity nice Thank you :)

  • @nilankadamayanthi1740
    @nilankadamayanthi1740 2 ปีที่แล้ว

    Finally the biggest problem solved. Thank you

  • @NightMareJP99
    @NightMareJP99 2 ปีที่แล้ว +2

    "A normal human head usually cannot rotate 180 degree", the word usually cracked me up 🤣. Good video btw

  • @ravensjourney7330
    @ravensjourney7330 2 ปีที่แล้ว

    Awesome tutorials - just what I was looking for. I purchased the full course via Udemy!

  • @pinyw683
    @pinyw683 2 ปีที่แล้ว +4

    Omg I'm very early and this looks very helpful

  • @neilfosteronly
    @neilfosteronly 2 ปีที่แล้ว +3

    Really cool. Using Full IK to do something like this, but didn't know how to make myself.
    Any chance for a non combat Ai system video? Even using a paid asset would be awesome.
    Thanks for your videos!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +4

      What do you mean by non-combat AI? I've long thought about making a mini-game like The Sims to explore some AI, is that what you mean?

    • @neilfosteronly
      @neilfosteronly 2 ปีที่แล้ว +3

      @@CodeMonkeyUnity Exactly what I mean. Just watched a GDC youtube where a programmer for the SIms 4 talks about the AI system.

  • @Walter_Hartwell_White356
    @Walter_Hartwell_White356 2 ปีที่แล้ว +1

    the video that i needed, tysm!

  • @raoahmed637
    @raoahmed637 2 ปีที่แล้ว +1

    Thank You sir for this amazing tut

  • @barj
    @barj 2 ปีที่แล้ว

    Cheers for this, it was super helpful! :)

  • @mbczxaydbzrkmszj
    @mbczxaydbzrkmszj ปีที่แล้ว

    To get it to work, I had to play with the "World Up Type" field of the "Multi Aim Constraint" component

  • @Robocat754
    @Robocat754 ปีที่แล้ว +1

    I can see the potential of this animation rig package. Do you think it's a good idea to achive a full body first person animaton using this package? In a lot of FPS games, the player has no body mesh and often casts no shadow. If we use this package, we can just make the head follow the rotation of the camera. No more complex setup for mirror reflection and realistic shadow for the player body?😄

  • @Glu10Free_Waifu
    @Glu10Free_Waifu 2 ปีที่แล้ว +1

    Nais...
    Try Feet placement for next topic...

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +4

      Yup I'm planning a video on that topic, it's really just using this package combined with a simple raycast

  • @drr1867
    @drr1867 2 ปีที่แล้ว

    Brilliant lecture - thank you

  • @nocultist7050
    @nocultist7050 2 ปีที่แล้ว +1

    Thanks for releasing this literaly a day after I finally learned this myself XD

  • @Mikelica69
    @Mikelica69 2 ปีที่แล้ว

    Super useful video!! Thanks agiain Code Monkey, i needed this tutorial so hard :D!!

  • @DevDunkStudio
    @DevDunkStudio 2 ปีที่แล้ว

    Love animation rigging

  • @darkdoom907
    @darkdoom907 2 ปีที่แล้ว

    you are the next Brackey

  • @radiance_37k
    @radiance_37k 2 ปีที่แล้ว +2

    Need to learn new stuff, find an official video on it.... Then remember Code Monkey explains it way better. Thanks for all your content.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      I'm glad you like the videos! Thanks!

  • @opalgameplay
    @opalgameplay หลายเดือนก่อน

    Köszönjük!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  หลายเดือนก่อน

      Thanks for the super thanks!

  • @alijaras
    @alijaras 2 ปีที่แล้ว +1

    Great video and great tool

  • @SangramTawade
    @SangramTawade 2 ปีที่แล้ว +1

    🙏 thank you for making this!

  • @邱健明-g6r
    @邱健明-g6r 2 ปีที่แล้ว

    Cool!This tutorial is so helpful!

  • @3in140
    @3in140 ปีที่แล้ว

    Transform 'Gun' not found in HumanDescription. when added the gun inside the character object

  • @keysersoze9930
    @keysersoze9930 9 หลายเดือนก่อน

    Excellent tutorial! It's just what I was looking for. I have only one doubt left. How can I make that the butt of the rifle does not rest in the center of the chest but rather rests on the right shoulder. Thank you.

  • @TheKr0ckeR
    @TheKr0ckeR 6 หลายเดือนก่อน

    Great guide, when i aim with avatar mask, my character is a bit looking left. I downloaded the animation from mixamo, and original animation was looking a little left, I fixed it by going animation settings and Set Root Transform Rotation to Original to fix. But when i add rig, its working like in the original looking a bit left. This is happening because of avatar mask.

  • @hasanrakib4811
    @hasanrakib4811 ปีที่แล้ว

    when using different animation for top and bottom part of the body, using animation layers, it does not quite look right.

  • @KasperJuul87
    @KasperJuul87 2 ปีที่แล้ว +1

    Okay. Your tutorials on the third person controller and animation rigging are great. But I can't find the "Animation Avatar video" you are referring to. Is it gone or is it a part of your course?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      Yup that one is part of the course, it's not an exciting topic so it wouldn't do well as a standard TH-cam video

  • @Infernoz5
    @Infernoz5 2 ปีที่แล้ว +1

    hi i keep getting this error "the transform stream handle cannot be resolved" even though i followed the tutorial

  • @alphaweeb5195
    @alphaweeb5195 2 ปีที่แล้ว +2

    Hey monke, any plans to cover how to use dottween?

    • @Glu10Free_Waifu
      @Glu10Free_Waifu 2 ปีที่แล้ว

      Reject humanity...

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +2

      Yeah thats one of the best assets on the store so I definitely want to do a review on it, maybe I'll make it during the new year sale, not sure

  • @王一次缘结一次绳
    @王一次缘结一次绳 7 หลายเดือนก่อน

    How about aiming the character himself foot?

  • @ColorfulVideoScrapbookof-ty5eh
    @ColorfulVideoScrapbookof-ty5eh ปีที่แล้ว

    Hey Codemonkey,
    I have a question about functionality. Currently I create my rig in Blender, and can do simple animations there as well. It’s nice to do, but I find the back and forth between Unity to be cumbersome, especially handling things like holding guns, and such.
    So my question is can you use the rigging system as an aid to animation. Like can you set up IK constraints and controllers and use those to make your own animations within Unity? For instance if I have a set of FPS hands in my game, and I set up the hand IK which controls the whole arm, and have a setup for curling each of it all the fingers, can I then proceed to posing my character with the rigging system in the editor, and then recording or keyframing those poses to make my own animations? That would be so much easier. I love Blender, but I feel like Unity should have some native functionality for that within the editor.
    Any insight would be greatly appreciated,
    Thanks

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว

      Unity isn't capable of crating humanoid animations so nope that's not possible, you really need to do it in Blender. Alternatively there are some assets that lets you make humanoid animations in Unity unitycodemonkey.com/video.php?v=bZW2IEmwOEg

    • @ColorfulVideoScrapbookof-ty5eh
      @ColorfulVideoScrapbookof-ty5eh ปีที่แล้ว

      @@CodeMonkeyUnity It doesn’t need to be a humanoid animation. It’s just a pair of arms. Do you think I could find a work around?

    • @a3dadventure79
      @a3dadventure79 ปีที่แล้ว

      @@CodeMonkeyUnity this is my other account. So I tried a few approaches.
      - I found with the rigging package, i could actually create animations in Unity, but it was difficult to set up subtle things like finger poses. I have to import the "animation" of holding the gun (finger position) from blender and then the Ik would do the rest. I could do it in Unity, but its much slower especially without IK controls i have in blender and Umotion. this way the gun could be moved around like an IK control and any animations would be centered around that. i find people usually pair procedural animations with this workflow as it can update the gun and hence the IK control. Also, I don't have the FPS arms as a humanoid rig, rather a generic rig.
      - then i got UMotion. It's really good. It's got a solid editor, rigging package and a nice ik solution. everything just gets saved to unity animation assets. it's meeting my fps animation needs for now. great asset for sure! and yeah, it does humanoid animations!

  • @anttiv7109
    @anttiv7109 ปีที่แล้ว

    How about the left hand thumb?

  • @Arelias95
    @Arelias95 ปีที่แล้ว

    I was looking everywhere for something similar. I'm making an RPG game and I need melee combat to be more than just horizontal swinging. I really hope this method will work for me.

  • @kolya4536
    @kolya4536 2 ปีที่แล้ว +12

    Truth is, the animation was rigged from the start

  • @ammargaming7117
    @ammargaming7117 2 หลายเดือนก่อน +1

    Hello. I am facing a really weird issue with my Two Bone IK Constraint component. In my case I am using Two Bone IK Constraint on my left hand and it works perfectly fine and my left hand correctly follows the target object's position, the problem is that whenever I shoot with my gun(I have a pistol in my scene which is attached to my right hand and my left hand is following the gun's position), So whenever I shoot, the hand's position slightly changes a bit and whenever I go to my animator component and check the apply root motion box, my hand snaps back to its intended position. Note that: whenever I check the apply root motion box through the code it doesn't work, it only works whenever I check the box through the inspector. I am not sure if it's a bug or something that I am missing. I am using generic character with generic animations, and I have my pistol shoot animation on a separate layer. Your help will be much appreciated.

  • @V0LAT1LE_
    @V0LAT1LE_ ปีที่แล้ว

    Hey, Im a regular viewer and love your content.
    I just wanna ask why do you use light theme in your code editor?😅

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว +1

      Because dark mode burns my eyes, I can't look at it for more than 10 seconds

  • @vitvohralik5557
    @vitvohralik5557 2 ปีที่แล้ว

    Most usefull video. Thanks

  • @siderongames5641
    @siderongames5641 2 ปีที่แล้ว

    Awesome video!! One question, is this something like procedural animation??

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +1

      Sure you could use IK and dynamically move the Legs to make it fully procedural

    • @siderongames5641
      @siderongames5641 2 ปีที่แล้ว

      @@CodeMonkeyUnity thank you so much!!

  • @this-is-gamedev
    @this-is-gamedev 2 ปีที่แล้ว

    Great video. Thanks!

  • @RexSmithII
    @RexSmithII 8 หลายเดือนก่อน

    at min 31. baking the constraints, what about huminoid animations for reloading a gubn magazine? because unity cant make keys for non humanoid bones. how can you bake this into a huminoid animation with gun objects?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  8 หลายเดือนก่อน

      I don't believe baking works with Humanoid animations since those animations are based on bones and not transform data, if you want to edit Humanoid animations directly inside you need a tool like UMotion unitycodemonkey.com/video.php?v=bZW2IEmwOEg

  • @mathdantastav2496
    @mathdantastav2496 2 ปีที่แล้ว

    how do I move the hips? I can move the hips, but it moves everything else with it, the legs go straight, instead of bending down as if hes crowching

  • @N1ghtR1der666
    @N1ghtR1der666 2 ปีที่แล้ว

    does your course over the new shadergraph as its quite different these days?

  • @N1ghtR1der666
    @N1ghtR1der666 2 ปีที่แล้ว +1

    I was thinking for third person you could do something like raycasting out from the camera to the center point of the reticle and then move the animation target to the impact point to have your character aim where the reticle is pointing. There is possibly a cheaper way to do it by just having pre set target position a long way in the distance that just moves with the character but not sure if it would look as good.

    • @ProperDev
      @ProperDev 2 ปีที่แล้ว

      For the Cabal-styled shooter I am making, I actually did something similar to this. Raycast from the camera, have player look at that collision point, and an invisible "wall" at a set distance for the areas that have no objects to raycast onto (such as a skybox). Now, no matter where my character is on the screen, if I can click on an object, I can shoot the object. Feels good.

    • @N1ghtR1der666
      @N1ghtR1der666 2 ปีที่แล้ว

      @@ProperDev nice!

  • @usamasharjeel8532
    @usamasharjeel8532 ปีที่แล้ว

    animation rigging not working on generic character ?
    Am i wrong or not
    because in my case animation rigging on humanoid work fine instead of generic ?
    what should i do ???

  • @REOsama
    @REOsama 2 ปีที่แล้ว +1

    Note: the rig builder component must be on the same gameobject that you have your animator on, otherwise it will give you very strange results

  • @mszczesnik
    @mszczesnik 2 ปีที่แล้ว +1

    Just a guess, but maybe the offset is not in units, but in degrees? It looked like it.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +1

      Yeah someone else pointed that out and I think that's it!

  • @michaelp8376
    @michaelp8376 ปีที่แล้ว

    Awesome!

  • @IlmeniteOG
    @IlmeniteOG 2 ปีที่แล้ว

    why my character ´s spine rotates etra when i connect it to the target? thx if you could help me.

  • @longlin-w5h
    @longlin-w5h 9 หลายเดือนก่อน

    The course you have mentioned at 16:34,what was it,I really need it.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 หลายเดือนก่อน

      It's a lecture from my ultimate unity overview course unitycodemonkey.com/courses.php?c=ultimateoverview

  • @marekpuchon4878
    @marekpuchon4878 2 ปีที่แล้ว

    Hi Jason i can get my finger on left hand that is holding magazine from weapon to turn. It looks like they are bended in oposit direction. I follow also on Udemy (you course) but still stuck with it. If you could help me please. Thank you

  • @shotoutgames8823
    @shotoutgames8823 ปีที่แล้ว

    How do you change the target (source objects) in runtime?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว

      I don't think you can change the object itself, you would just move it to wherever you want it to be

  • @pikustudio1
    @pikustudio1 ปีที่แล้ว

    You're the best

  • @abdoulraoufgambo
    @abdoulraoufgambo 2 ปีที่แล้ว

    thank you so much !!!!!

  • @pytchoun140
    @pytchoun140 2 ปีที่แล้ว

    Do you have to install Burst package for use this one ?

  • @NirajArts
    @NirajArts 9 หลายเดือนก่อน +1

    Is the Animation Rigging optimized for mobile development? Never really worked with it before, so just had concern if we can use it for mobile development, Thanks!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 หลายเดือนก่อน

      The system is very well optimized but naturally it does have some cost. If you have just one character with some simple rigging it will run fine, if you need to have 100 you might have issues.

    • @NirajArts
      @NirajArts 9 หลายเดือนก่อน

      Definitely not hundred but, yeah it would have only one character. Thanks for responding, and great video🙌🍻 @@CodeMonkeyUnity

  • @_dimitrisbr
    @_dimitrisbr ปีที่แล้ว

    cool, but how can i make my animations still play?

  • @iman-believer
    @iman-believer 2 ปีที่แล้ว +1

    Great

  • @robertban871
    @robertban871 2 ปีที่แล้ว +1

    the aiming thing is what ive been wondering how to do, but the IK leg thing has made me curious now, does that work with a walking animation? or would it be for some kind procedural walking thing in place of animations?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      Sure, you can play around with the Weight in an animation and animate the leg going up wth the animation, and going down to hit the ground perfectly with IK

  • @TheAwesomeAlan
    @TheAwesomeAlan 2 ปีที่แล้ว

    Edit, fixed. For anyone having the issue: Make sure to assign Rig1 (or whatever you've named your rig) to the AimRig variable in the inspector. I somehow missed that part.
    ---
    I've tried modifying the LookAtObject script to add if statements in regards to if the player is aiming or idleing (I want the rig enabled when aiming, disabled when idleing), but I keep getting an error that I can't quite wrap my head around.
    "NullReferenceException: Object reference not set to an instance of an object
    LookAtObjectAnimationRigging.Update"
    From as far as I can tell, the script was working perfectly fine in the original version presented in the video. But when I changed around some of the if statements to use StarterInputs, things stop working. Any idea why this is happening? Here's the code, with the error appearing at " if (starterAssetsInputs.aim)":
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using StarterAssets;
    using UnityEngine.InputSystem;
    using UnityEngine.Animations.Rigging;
    public class LookAtObjectAnimationRigging : MonoBehaviour
    {
    private StarterAssetsInputs starterAssetsInputs;
    private Rig rig;
    private float targetWeight;
    private void Awake()
    {
    rig = GetComponent();
    }
    private void Update()
    {
    rig.weight = Mathf.Lerp(rig.weight, targetWeight, Time.deltaTime * 10f);
    if (starterAssetsInputs.aim)
    {
    targetWeight = 1f;
    }
    else
    {
    targetWeight = 0f;
    }
    }
    }

  • @pytchoun140
    @pytchoun140 2 ปีที่แล้ว

    Any videos for using the Unity multiplayer features ?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      It's still in preview but yes whenever the full release happens I'll do a video on it

    • @pytchoun140
      @pytchoun140 2 ปีที่แล้ว

      @@CodeMonkeyUnity i think it is still in a good stage. maybe you can already start

    • @valentinstudio3334
      @valentinstudio3334 2 ปีที่แล้ว

      Get acquainted with Photon, easiest shit I've seen in years, already making a second multiplayer game using it, super easy API and clear doc
      Very responsive support
      It's working damn good, I'm making a WWII FPS and it's been a smooth ride so far
      Forget about Unity and their multiplayer, been years in the work still nothing out, Photon is great

  • @BrainSlugs83
    @BrainSlugs83 2 ปีที่แล้ว

    How would you constrain the butt of the gun to be against his shoulder? (instead of clipping though his face and beard like you show here?)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      You could change the pivot of the gun to be on the butt and it would rotate from there

  • @kaloshabuthapa3284
    @kaloshabuthapa3284 2 ปีที่แล้ว

    How to add animation tab for preview? How did you connect rigging with the animations at 10:31?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +1

      Go to Window > Animation > Animation

  • @jozimastar95
    @jozimastar95 2 ปีที่แล้ว

    that's ingesting ngl

  • @perspectives2202
    @perspectives2202 ปีที่แล้ว

    Does animation rigging aiminig movement etc. Works with netcode for gameobjects? Can you please answer

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว

      Yes, the rigging parameters are just floats or Vector3s which you can easily synchronize

  • @fabianobersovszky6987
    @fabianobersovszky6987 ปีที่แล้ว

    Do you know why i can't change the hips position with TwoBoneIKConstraint? Only the rotation works.

    • @ibeatboxer_9673
      @ibeatboxer_9673 5 หลายเดือนก่อน

      same issue do you have ever find a fix to it?

  • @Daniel.camposcpd
    @Daniel.camposcpd 2 ปีที่แล้ว

    Boa tarde, gostei muito do seu conteúdo, infelizmente não falo seu idioma. Porem você venderia esse projeto que esta no vídeo ? assim posso ir testando ele e vendo por conta própria de como ele funciona.
    compreensão

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      Qual projecto? A character e idle animation é um free download do Mixamo unitycodemonkey.com/video.php?v=c4jtyDA7vcs
      O Animation Rigging faz parte do Unity, não é nada extra

  • @AmgedAlfakih
    @AmgedAlfakih 2 ปีที่แล้ว

    hello codeMonkey, I have a problem, when I apply an ik to the right hand, it move very quickly and then crash and the ik and aim ik doesn't work

  • @user-js7ud9du2y
    @user-js7ud9du2y 2 ปีที่แล้ว

    i wish this Animation Rigging has Reactive IK for floor and other objects. right now Final ik does it better but its not free

  • @bielzim_011
    @bielzim_011 11 หลายเดือนก่อน

    Seu curso parece sensacional muito bom ,o problema e que em Reais(Brl) e fogo kkkkkkkkk

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  11 หลายเดือนก่อน

      Infelizmente acho que o Teachable não suporta regional pricing, pelo menos não encontro forma de fazer

  • @forestlapointe1448
    @forestlapointe1448 ปีที่แล้ว +1

    I got the error
    The type name 'Rigging' does not exist in the type 'Animations'
    But I'm using an Assembly Definition
    Fixed it by adding Unity.Animation.Rigging to my Assembly Definition Resources
    Hope this helps!

    • @fzycold8652
      @fzycold8652 5 หลายเดือนก่อน

      where is it and how to add it

  • @fzycold8652
    @fzycold8652 5 หลายเดือนก่อน

    Having error The type or namespace name 'Rigging' does not exist in the namespace 'UnityEngine.Animations' (are you missing an assembly reference?)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  5 หลายเดือนก่อน

      Did you import the animation rigging package?
      Maybe they changed the namespace name in a recent version

    • @fzycold8652
      @fzycold8652 5 หลายเดือนก่อน

      @@CodeMonkeyUnity I think that error occurs since you do not use visual studio as default IDE, (I used an editor instead), I couldnt solve the issue and made a new project with all default, now its working well there, thank you for the answer.

  • @Heinz19946
    @Heinz19946 2 ปีที่แล้ว

    i have a question, how can i make for example the scorpion sting something and that object stay with the scorpion?
    what i want is to make a ship dock with other ship

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว +2

      There is a Parent constraint, you could use that to force another object to be positioned in the IK target. Or just change the regular transform.parent

  • @Californiagent
    @Californiagent 2 ปีที่แล้ว

    Very good

  • @negimox
    @negimox 2 ปีที่แล้ว

    Hey great explanation, but I have been facing a problem and couldn't find how to fix it, I downloaded a asset pack from asset store I wanted its animations of the character but the animation doesn't work on my character but it works for the character provided I tried to change the rigging to "Copy from avatar" and providing my characters but it still doesn't work any thoughts as to how I can fix this?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 ปีที่แล้ว

      Maybe check the avatar and see if all the body parts are correctly assigned.

  • @Jesse_Rioux
    @Jesse_Rioux ปีที่แล้ว

    Hey brother, I have a question about the synty model. I tried to replace the standardasset playerarmature with a synty and soon as I push play, the synty collapses into a pile on the ground. How do you replace the armature with a synty character? I thought I did it, correctly.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  ปีที่แล้ว

      Sounds like you added a Ragdoll to the model? If so you should only enable the ragdoll when you actually want the character to crumble