How to Move Characters in Unity 3D: Animated Movement Explained [Built-In Character Controller #2]

How to Move Characters in Unity 3D: Animated Movement Explained [Built-In Character Controller #2]

184.014 Lượt nghe
How to Move Characters in Unity 3D: Animated Movement Explained [Built-In Character Controller #2]
A breakdown and explanation of how to properly move animated characters in Unity 3D! Learn movement with the Built-In Character Controller and New Input System! This beginner-friendly tutorial is a COMPLETE walkthrough of how to use Unity 3D's built-in character controller to get a character moving while incorporating animations! In addition, we take the time to break down complicated concepts and understand how it all works! Small update in 2022: Thanks to Cláudio Costa for pointing out a change in more recent versions of Unity: the "2D Vector Composite Binding" has been renamed to "Up/Down/Left/Right Binding". It is still functionally the exact same though! ✨ ACCESS PROJECT FILES & SUPPORT THE CHANNEL: 💛 https://www.patreon.com/iHeartGameDev iHeartGameDev Merch: 💛 https://www.iheartgamedev.com WANT MORE? Interested in learning more about animating characters in Unity? Check out my growing series of tutorials: ✅ https://youtube.com/playlist?list=PLwyUzJb_FNeTQwyGujWRLqnfKpV-cj-eO ✦ Like the vid? Please consider Subscribing! https://bit.ly/2YdIb6j ✦ Missed out on the last episode? https://youtu.be/e94KggaEAr4 SOCIAL: ✦ Discord https://discord.gg/2AxUvsa ✦ Twitter https://twitter.com/iHeartGameDev LINKS FROM THE VIDEO: 🤖 Download Jammo for YOUR game: https://assetstore.unity.com/packages/3d/characters/jammo-character-mix-and-jam-158456 ⭐ And Check Out MixAndJam! https://youtube.com/MixAndJam 🌐 Learn about Quaternions https://eater.net/quaternions GEAR: Lumix G7 Camera: https://amzn.to/3Kks1gZ Epomaker GK68 Keyboard: https://amzn.to/3Ke87EB Samson C01U Pro Mic: https://amzn.to/33kDdtG LG 27" Monitor: https://amzn.to/3qAHFwS Lepow 15.6" Portable Monitor: https://amzn.to/3287OtL Logitech G604 Mouse: https://amzn.to/3A6jNV4 Audio-Technica ATH-M50X Headphones: https://amzn.to/3tBaeMT X-Pen Artist 15.6 Pro Drawing Tablet: https://amzn.to/3FE5HLI Apple 15in MacBook Pro Laptop: https://amzn.to/3AbKdFc ►TIMESTAMPS: Intro: 0:00 Walkthrough Breakdown: 0:40 Download Project Animations: 1:00 Fresh Unity Project: 1:22 Import & Modify Animations: 1:50 Jammo Setup: 3:10 Adding Animator Component & Animation Controller: 3:42 Animation States Setup: 4:22 Animation State Transitions: 4:59 Adding Animations To Animation States: 5:40 New Input System Setup: 6:10 What are Input Actions: 6:24 Action Maps, Actions & Properties: 6:38 Our First Action Map & Action: 7:01 Setting up the Move Action: 7:22 Input Bindings Explained: 8:22 2D Vector Composite Explained: 9:36 Setting up the Run Action: 10:00 IMPORTANT Generate Input Class: 10:25 Are You New to Coding: 10:58 Add a Script to Jammo: 11:17 Accessing our PlayerInput Class: 11:37 Callback Functions Setup & Explained: 12:24 Testing Callback Function: 13:14 Enable & Disable Action Maps: 13:44 Storing & Using the Input Data: 14:23 Adding & Accessing the Character Controller: 15:31 First Movement Code: 16:24 Update Function & Time.deltaTime Explained: 16:39 Setting Up More Input Callbacks: 17:29 Don't Repeat Yourself Movement Refactor: 18:10 Access Animation through Code: 18:55 HandleAnimation Function Setup: 19:30 Learning to Turn with Quaternions: 20:50 HandleRotation Function Setup: 21:20 Quaternion Slerp Explained: 22:27 Run Movement Setup & Code: 23:18 Animator Parameter Hashing Refactor: 25:05 Running Animation Code: 25:31 HandleGravity Function Setup: 26:10 Final Result: 26:56 How to Vote on the Next Tutorial: 27:13