Adding Animations | Blend Trees, Layers, & Animation Rigging - 3rd Person Shooter - Unity Tutorial
samyam
Learn how to add animations to your characters via Mixamo (free characters and animations) and the Animator component. We will learn how to add pre-existing animations and also add dynamic and procedural animations using Unity's Animation Rigging Package.
First, we'll choose a model and animation in Mixamo, import it into Unity and set up a Humanoid rig. From there we will add a Strafe animation from Unity's Standard Assets on Github and use a Blend Tree to easily and smoothly blend between the different strafing directions. For our animation scripting, we will be doing a cross fade to our jumping animation as a sort of trigger.
Then, we will download and use the Animation Rigging package to dynamically grip the gun with the character's hands and a Two Bone constraint. We will also have the player body aim up and down with a Multi Aim Constraint to aim at a target direction.
Once we set up dynamic animations, we will add a recoil animation which our set up Animation Rigging will help with. The animation is added in a separate layer to have different running and recoil animations playing at the same time.
►3rd Person Shooter Controller with Cinemachine & Input System - Unity Tutorial 🔫 https://youtu.be/SeBEvM2zMpY
►Project Files Available on Patreon 💻 https://www.patreon.com/posts/53254441/
►Relevant Video Links 🔗 https://www.mixamo.com/ https://github.com/Unity-Technologies/Standard-Assets-Characters https://opengameart.org/content/3d-low-poly-pistol-with-bullet-shell https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.1/manual/ConstraintComponents.html
💖💖THANK YOU TO ALL MY PATRONS FOR MAKING THIS VIDEO POSSIBLE💖💖
►Timestamps ⏱️ 0:00 Intro 1:07 Previous Video 1:25 Mixamo Download Model 4:29 Set up Humanoid Model 8:48 ASMR Keyboard Typing (totally did not forget to edit this out) 9:12 Set up Humanoid Model Cont 11:50 Animator Component 13:25 Download Strafe Animation 14:11 Set up Blend Tree 23:54 Smooth Damp Input System Values 25:15 Animator Cross Fade 31:07 Animation Rigging Overview 36:13 Two Bone Constraint - Right Hand 44:42 Two Bone Constraint - Left Hand 47:10 Multi-Aim Constraint to Aim Body & Head 52:00 Change Aim Target in Script 53:30 Reparent Gun under Mixamo Spine 55:15 Small Player Shoot Glitch Fix 55:43 Recoil Animation 58:12 Layers 1:07:48 Add Limit to Multi-Aim Constraint 1:08:24 Outro
My Links ►Patreon 💗 https://www.patreon.com/samyg ►Discord Server 💬 https://discord.gg/SwCKB3Q ►Twitter 🐦 https://twitter.com/samyam_utube ►Facebook 📚 https://www.facebook.com/samyam.youtube/ ►Like and Subscribe! 👍
►Music 🎵 Monkeys Spinning Monkeys by Kevin MacLeod Link: https://incompetech.filmmusic.io/song/4071-monkeys-spinning-monkeys License: https://filmmusic ... https://www.youtube.com/watch?v=583R9LgRZPA
278231678 Bytes