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

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • Learn how to use the built-in character controller to move your characters in Unity 3D with this detailed explanation and break down!
    This beginner-friendly tutorial is a thorough explanation of Unity 3D's built-in character controller! By understanding the properties and methods available, we can learn to properly move our characters without causing issues down the line!
    SUPPORT THE CHANNEL:
    💛 / iheartgamedev
    iHeartGameDev Merch:
    💛 www.iheartgamedev.com
    WANT MORE?
    Interested in learning more about animating characters in Unity? Check out my growing series of tutorials:
    ✅ • Unity's Animation System
    ✦ Like the vid? Please consider Subscribing!
    bit.ly/2YdIb6j
    ✦ Missed out on the last episode?
    • How to Move Characters...
    SOCIAL:
    ✦ Discord
    / discord
    ✦ Twitter
    / iheartgamedev
    LINKS FROM THE VIDEO:
    🤖 Download Jammo for YOUR game:
    assetstore.unity.com/packages...
    ⭐ And Check Out MixAndJam!
    / mixandjam
    GEAR:
    Lumix G7 Camera: amzn.to/3Kks1gZ
    Epomaker GK68 Keyboard: amzn.to/3Ke87EB
    Samson C01U Pro Mic: amzn.to/33kDdtG
    LG 27" Monitor: amzn.to/3qAHFwS
    Lepow 15.6" Portable Monitor: amzn.to/3287OtL
    Logitech G604 Mouse: amzn.to/3A6jNV4
    Audio-Technica ATH-M50X Headphones: amzn.to/3tBaeMT
    X-Pen Artist 15.6 Pro Drawing Tablet: amzn.to/3FE5HLI
    Apple 15in MacBook Pro Laptop: amzn.to/3AbKdFc
    ►TIMESTAMPS:
    Intro: 0:00
    Project Setup: 0:33
    Adding Character Controller: 0:54
    Center, Radius, Height: 1:06
    What is a Character Controller: 1:33
    Collider Caveat: 1:51
    Min Move Distance: 2:13
    Skin Width Examples: 3:09
    Skin Width Explained: 3:53
    Step Offset: 4:06
    Slope Limit: 4:43
    Unity Docs: 5:07
    Detect Collisions: 5:20
    Enable Overlap Recovery: 6:20
    Collision Flags: 6:54
    IsGrounded: 7:10
    Collision Flags Are Tricky: 7:27
    Velocity: 8:31
    How Move and Simple Move Work: 9:01
    OnControllerColliderHit: 11:38
    Next Time: 12:12
    Outro: 12:30
    Thank you for watching! 💛

КОМЕНТАРІ • 379

  • @xianead18
    @xianead18 3 роки тому +279

    You will probably be the next biggest thing in Unity tutorials after Brackeys with this high-level quality content. Solid work!

  • @KingRecycle69
    @KingRecycle69 3 роки тому +18

    I love this. It's always good to know how something works in programming. They should place this video on the documentation page. Can't wait for the next one!

  • @AlecAndersonZx
    @AlecAndersonZx 3 роки тому +1

    Fantastic quality video. I rarely see videos that explain everything super well and also give visuals that help you perfectly grasp exactly what's happening. I'm looking forward to new videos in the future!

  • @MJOb928
    @MJOb928 3 роки тому

    Awesome tutorial. Easily, by far and away the most informative and information packed and accessible unity tute I haven seen on youtube. I love how you use the side by side visual examples to explain. Keep it up and i look forward to watching more 👍

  • @Novecento
    @Novecento 3 роки тому +47

    I'm a Unity developer since 2015 and believe me, I've seen a lot of tutorials during these years, both free and paid. I have to say yours are the best I've ever seen! Clear, concise, informative and straight to the point! I hope you'll continue this wonderful work of yours in the future because your tutorials are pure gems! Thanks a lot!

  • @simoncodrington
    @simoncodrington 3 роки тому

    Great visual breakdown of the movement controller properties mate. Perfectly explains what they do and when you'd use them. Looking forward to more great videos like this.

  • @abhisheksuper20
    @abhisheksuper20 2 роки тому

    Awesome video with simple and easy to understand explanation. What's more better is your direct demonstration in the editor itself. Makes the concept very easy to understand as it can be visualized directly. Keep up the awesome work!!

  • @thewightone7441
    @thewightone7441 3 роки тому

    Yo, this video is sick. I had to learn most of this on my own over a few years and I STILL didn't know about the collision collider flags and the character controller callback method. Great work, can't wait for the next video.

  • @chandrahasp6697
    @chandrahasp6697 3 роки тому +2

    Great video as always! I'll be pointing any beginners to your videos from now on, as you are good at explaining fundamentals than most of the others. Cheers mate!

  • @ktmochiii
    @ktmochiii 3 роки тому +1

    seeing awesome new videos like these, makes me think how much the gamedev community has yet to grow in terms of tutorials. thanks nicky!

  • @XuryGreer
    @XuryGreer 3 роки тому

    Really incredible timing, I was just looking for an explanation like this so I can help a friend without completely coding a character controller from scratch!

  • @michaelmcveigh9534
    @michaelmcveigh9534 3 роки тому +11

    This could not have come a better time for me. I was just struggling with some of this stuff this morning

  • @lee1davis1
    @lee1davis1 2 роки тому

    Best detailed explanation of the CC I've seen. Added to my must watch playlist.

  • @zachklegon8849
    @zachklegon8849 3 роки тому

    Great breakdown of everything! This was really well edited! Looking forward to more!

  • @DarkParadice
    @DarkParadice 3 роки тому +6

    Awesome video and in depth explanations. Will use this as a reference to anyone who wants to learn because you explained them so well and even had a few things in there that I didn't know. I've always made my own character controllers because I better understand them and I get what I want. This was very insightful even to me and may even help speed up my process.

    • @iHeartGameDev
      @iHeartGameDev  3 роки тому +3

      Thanks so much for the kindness! :D I love to hear that!

  • @erz3030
    @erz3030 3 роки тому

    Great stuff Nicky! You always have an excellent way of using visuals combined with your ability to convey concepts concisely. I know I speak for others that are visual learners. Cheers.

  • @ognjenarsenijevic3444
    @ognjenarsenijevic3444 11 місяців тому

    Youre actually insanely good at explaining things, and you explained everything without overcomplicating it. Thanks

  • @rivix7546
    @rivix7546 3 роки тому

    I've just got into Unity from not programming or gamedev in 20 years, and by god your tutorials have been a god send! Ty so much.

  • @erikshukhyan
    @erikshukhyan 2 роки тому +1

    So detailed and such a good explanation. Love your content, keep it up!

  • @TheRyanSmee
    @TheRyanSmee 2 роки тому +1

    I was watching another video and this autoplayed and super I'm glad I didnt switch it off. This was such a clear and simple description of all the properties. Thank you!

  • @metin1504
    @metin1504 3 роки тому +1

    dude i need this series, can't wait for ep. 2! keep em coming

  • @sandybathwater8385
    @sandybathwater8385 3 роки тому

    Very well done. I have been wrasslin with this stuff (which is fun in a way) for a day. You just snapped a bunch of stuff into place. Thanks!

  • @ZombieBowTiie
    @ZombieBowTiie Рік тому

    I loved the nod to RoyalSkies with that Not a Problem. And I love your tutorials which, if I may, are more of a course than anything. You give an actual broad explanation to things rather than just the narrow specified task at hand. For that, I thank you

  • @chrisa9549
    @chrisa9549 3 роки тому

    As always, the highest quality tutorial of its kind :) thanks a lot Nicky!

  • @Visigoth_
    @Visigoth_ Рік тому

    This was an excellent video (I loved how clear the explanations were and the visual examples were great)! 😁👍

  • @tamilmaran4000
    @tamilmaran4000 3 роки тому +1

    I love the fact that you take your time for quality content, instead of pumping out videos continuously. Great work man. Helping a lot of people. Thanks

    • @tamilmaran4000
      @tamilmaran4000 3 роки тому

      @@iHeartGameDev That's awesome man. your tutorials are very crisp and covers everything in the component. waiting for the upcoming ones eagerly.

  • @MrJwoody55
    @MrJwoody55 3 роки тому +1

    Thank you Nicky! You have the best Unity tutorials out there. Please never stop making them!

  • @MrAnime-kl6kn
    @MrAnime-kl6kn 3 роки тому

    The way you make me understand, just subscribed. Keep it up and never give up. You will be the next big youtuber in this field.

  • @plinyvicgames
    @plinyvicgames 3 роки тому

    this is unbelievably well made and very cleanly cut, very cool

  • @enzogherbi9312
    @enzogherbi9312 Рік тому

    still works! followed steps exactly and it works, thx a ton and keep up the awesome videos

  • @jamasbsamia2317
    @jamasbsamia2317 2 роки тому

    For sure one of the best tutorials I've ever seen, perfect, completely clear with great examples, you are much much better than unity documents, I appreciate it sir.

    • @iHeartGameDev
      @iHeartGameDev  2 роки тому

      Thank you so much! Happy to hear it helps out!

  • @kinza7740
    @kinza7740 Рік тому

    firstly I would like to wish you well and to say a huge thank you for uploading these videos as they have been an invaluable resource to

  • @ShayminMaster2
    @ShayminMaster2 3 роки тому

    Literally, just started working on a new project with this and had to deduce most of this information myself through trial and error. Thanks! You're going taking the mantle of Brackeys =]

  • @someoneontheinternet3090
    @someoneontheinternet3090 3 роки тому

    Best tutorials I've seen in ages. Nice work!

  • @therebelliousgeek4506
    @therebelliousgeek4506 3 роки тому

    Just keep it up man, just found your channel, subbed. Will probably binge your channel soon. Just keep making these.

  • @andiedev2671
    @andiedev2671 3 роки тому +1

    ur channel is like treasure,i could save alot time if i found it earlier haha thx for explaining all the buttons and things in detail

  • @mccrackenyt1241
    @mccrackenyt1241 3 роки тому

    Thank you for this video man! This videos was really helpful and awesome! Keep it up! 🔥

  • @kendavis4704
    @kendavis4704 3 роки тому

    Thanks for another great tutorial. Looking forward to the next episode!

  • @Ghin_Antonic
    @Ghin_Antonic 3 роки тому

    Helpful because I had discovered the built in character controller and was going to use it for the game I'm making with a group, but didn't know all it encompasses yet. Will be good to have all this once I finished the world building tool.

  • @tenaciousstudios03051
    @tenaciousstudios03051 2 роки тому

    Thanks for your guide on the basic built-in character controller. I'll make it a point to watch your video on the rigidbody method.

  • @PhantomWolf93
    @PhantomWolf93 2 роки тому

    Man, your video edition is insane and your explanations awesome. Keep the hard work, i love it!

  • @kmyoshino
    @kmyoshino 3 роки тому

    Thank you again for another amazing video. Your content is nothing short of gold.

  • @tahmidshadman7922
    @tahmidshadman7922 3 роки тому

    Just here to appreciate what you are you doing. You tutorials are very great and easy to understanding and gives overall needed knowledge about a component. Please keep things like this for future. Thank you Very much for you efforts in making this. Also can you do tutorials over custom character controller with movement and intereact with object that would be very helpful for lot of people. I've trying to find every but nothing clear is there.

  • @flomoemma8547
    @flomoemma8547 Рік тому

    Keep em' comin' and thanks for all of the help!!

  • @alexisfernandez8052
    @alexisfernandez8052 Рік тому

    Great tips!! I'll def check out more of your videos. Just started writing and making soft. I feel soft softs will help get to the next

  • @SVAFnemesis
    @SVAFnemesis 3 роки тому

    I hope unity is financially endorsing you for doing all these. These are incredibly high quality works.

  • @gamedevtobe
    @gamedevtobe 9 місяців тому

    Great Video! Very clear and precise explanation! Keep up the good work!

  • @conraddugger4165
    @conraddugger4165 3 роки тому

    Solid stuff, man! Looking forward to the Rigidbody character controller video.

  • @iuridosanjos
    @iuridosanjos 3 роки тому

    You got a really good way on teaching and showing in an easy way what you want to.
    Really well editted. Congratulations.
    Although, care with over explanating or detailing really basic things on the next videos. It's sure really good for beginners, but can get little too slow for other people.

  • @RainDevs
    @RainDevs 3 роки тому

    This is great! Excited for your next video.

  • @MrJuancho2706
    @MrJuancho2706 3 роки тому

    Hey Nikki! I just wanted to say that your channel deserve WAY more recognition, you explain really good, even tho im not using any of the 3D stuff unity has to offer (for now) im here to support you!
    Now if you are going to make a video for the 2D/Topview related thing ill be more than happy 😊.
    Have a nice day!

    • @MrJuancho2706
      @MrJuancho2706 3 роки тому

      @@iHeartGameDev Nice! ill be looking foward!, keep the good work! and when people in the comments say that you will become the next big thing in Unity scene they werent lying :)

  • @recaps_plus
    @recaps_plus Рік тому

    I know tNice tutorials is an old video but I’m new and thank god I finally found you . Thank you for such an amazing and helpful video ❤️

  • @TNTCProject
    @TNTCProject 3 роки тому +2

    Well done mate, super clear!

  • @Bunnunoox
    @Bunnunoox 3 роки тому

    This was excellent! Very clearly explained.

  • @Dragoncro0wn
    @Dragoncro0wn 3 роки тому

    Subbed. Well detailed and explained. Looking forward to your next videos.

  • @akashjaiswar9437
    @akashjaiswar9437 3 роки тому

    Excited for the next one!!! This one was very helpful. These videos should replace unity documentation or should be embedded in them.

  • @ThisIsOnlyKurr
    @ThisIsOnlyKurr Рік тому +1

    THANK YOU SO MUCH THIS WAS EXTREMELY HELPFUL :D

  • @Tbone272
    @Tbone272 2 роки тому

    Found myself watching your tutorials three times now, hitting the sub lol

  • @BB-uy4bb
    @BB-uy4bb 3 роки тому +1

    Really waiting for the next video, keep it up!

    • @iHeartGameDev
      @iHeartGameDev  3 роки тому

      Thanks B B!! It’s coming! Another week or two!

  • @freemoncodes
    @freemoncodes Рік тому

    This was freaking awesome. Textbook tutorial, you have my thanks

  • @forsaken559
    @forsaken559 Рік тому

    OMG THANK YOU!!! I went through hours of "beginner" guides before I could find tNice tutorials and at least make a simple soft... Only video I've

  • @changemaker9751
    @changemaker9751 3 роки тому

    Thanks mate .Very useful content.I am waiting another video for Animator component :)

  • @barge489
    @barge489 3 роки тому

    This is great, totally going to use this for my students.

  • @aquafinagaming9491
    @aquafinagaming9491 3 роки тому +1

    Awesome cool video waiting from a long time you are op

  • @michaelwilson8461
    @michaelwilson8461 3 роки тому

    Really nice coverage. There's a million "copy what I do" videos out there. They're great for getting up and running, but having an understanding of the underlying properties goes A LONG way in actually being able to tune something to your needs.
    Its kind of like that whole "Give a man a fish , vs teach a man to fish " thing (paraphrased lol).
    Nice work man.
    One thought though, if at all possible it would be nice if you could slow down just a little. Ive watched on about 0.8 speed just to keep from having to scrub back a couple seconds all the time. When your brain gets old it slows down lol.

  • @Patricebrouh
    @Patricebrouh 3 роки тому

    Yours videos are so great, so well explained. Please, don't forget a 3D Legde grabbing tutorial. Thanks

  • @charlesonis3484
    @charlesonis3484 3 роки тому

    Cool video! Keep going for it Nicky!

  • @jiovanniabdelmalak296
    @jiovanniabdelmalak296 Рік тому

    drums softing good start learning how to make your own lodies. Good luck bro!

  • @TheHandar_x
    @TheHandar_x Рік тому

    Gracias master ! Por compartir contenido y por su talento artístico ! Estoy al tanto de todos sus videos ! Saludos !

  • @luizhenriquebarbozalindolm8612

    So informative, thanks a lot!

  • @opcode6
    @opcode6 3 роки тому

    You do so much RIGHT with the way you teach. I am in awe of your tutorials!

    • @iHeartGameDev
      @iHeartGameDev  3 роки тому

      Hey thanks so much! That means a lot to hear :D

    • @kingdom216
      @kingdom216 3 роки тому

      @@iHeartGameDev what do I have to add to this to not get compiler errors? How do I change this and it's affiliate statement to fit jumping into the mix:
      if (isrunning && (!forwardPressed || !runPressed)) I need specific help. Thank you.
      public class animationStateController : MonoBehaviour
      {
      Animator animator;
      int isWalkingHash;
      int isRunningHash;
      int isJumpingHash;
      // Start is called before the first frame update
      void Start()
      {
      animator = GetComponent();
      isWalkingHash = Animator.StringToHash("isWalking");
      isRunningHash = Animator.StringToHash("isRunning");
      isJumpingHash = animator.StringToHash("isJumping");
      }
      // Update is called once per frame
      void Update()
      {
      bool isrunning = animator.GetBool(isRunningHash);
      bool isWalking = animator.GetBool(isWalkingHash);
      bool isJumping = animator.GetBool(isJumpingHash);
      bool forwardPressed = Input.GetKey("w");
      bool runPressed = Input.GetKey("left shift");
      bool jumpPressed = Input.GetKey("space bar");
      if (!isWalking && forwardPressed)
      {
      animator.SetBool(isWalkingHash, true);
      }
      if (isWalking && !forwardPressed)
      {
      animator.SetBool(isWalkingHash, false);
      }
      if (!isrunning && (forwardPressed && runPressed))
      {
      animator.SetBool(isRunningHash, true);
      }
      if (isrunning && (!forwardPressed || !runPressed))
      {
      animator.SetBool(isRunningHash, false);
      }
      }

      }

  • @ColeWithAGoal
    @ColeWithAGoal 3 роки тому

    This was perfect man, thanks!

  • @chryslerlazaro3327
    @chryslerlazaro3327 Рік тому

    Brilliant tutorial, thank you.

  • @xvalue
    @xvalue 2 роки тому +1

    These are fantastic videos. Please keep it up. Good work.

  • @doc8724
    @doc8724 3 роки тому

    Great tuto! subscribed!!

  • @xxobadagamerxx8217
    @xxobadagamerxx8217 Рік тому

    Thanks for tNice tutorials amazin tutorial! Such a helpful one

  • @csicskagyasz4270
    @csicskagyasz4270 Рік тому

    it worked! thank you so much!!

  • @smiley-jc4wc
    @smiley-jc4wc Рік тому

    HIS HELPED ME SO MUCH! THANK YOU!

  • @jorgealexanderguatequemart3735
    @jorgealexanderguatequemart3735 3 роки тому

    Thanks !!!!! your videos area great. I'm learning a lot.

  • @taykufc
    @taykufc 3 роки тому

    Man, just want to say... You explain like a boss!!!

  • @aa-xn5hc
    @aa-xn5hc Рік тому

    Fantastic tutorial!

  • @ptjokr3700
    @ptjokr3700 Рік тому

    You do great work bro. Keep it up bro.❤❤

  • @NamNguyen-uu8yq
    @NamNguyen-uu8yq Рік тому

    seriously helped thank you!!

  • @krisprofreefire5376
    @krisprofreefire5376 Рік тому

    what a hearty video for all beginners!

  • @JubileeCloudJMMC
    @JubileeCloudJMMC Рік тому

    I've seen that has actually explained it to in a concise way!

  • @Ciapodotit
    @Ciapodotit 3 роки тому

    very high quality content, thank you

  • @spaience1159
    @spaience1159 Рік тому

    Thank u so much. I've been so confused, but tNice tutorials video helped a lot.

  • @maurilio123fra
    @maurilio123fra 3 роки тому

    great video, this help me a lot.

  • @RaskaTheFurry
    @RaskaTheFurry 3 роки тому

    oh, this is very nice, this easy visual explanation, rather than digging through docs. Good job.
    also the move method doesnt just add the vector, it interpolates it, just so the moving is nice and smooth. and that is done by that Delta time

  • @badoli1074
    @badoli1074 3 роки тому

    Very well done!

  • @terraazul1654
    @terraazul1654 Рік тому +1

    Frrrrr tNice tutorials man just straight forward !

  • @xmidnight4150
    @xmidnight4150 Рік тому

    wow dude i love u, it really works!

  • @sourcelocation
    @sourcelocation 2 роки тому +1

    Excellent explanation

  • @ianfarrell1182
    @ianfarrell1182 3 роки тому +1

    Looking forward to this

  • @kaloqnasenov4610
    @kaloqnasenov4610 Рік тому

    Great video, the program works great

  • @DandinXY
    @DandinXY 3 роки тому +3

    This series rules! I've been working with Unity character controllers for years, and there were things I learned in the intro video that I've never understood before. Thank you!

  • @arionpaul6208
    @arionpaul6208 3 роки тому

    Wow, really helpful video!

  • @LoshanTharinda
    @LoshanTharinda Рік тому

    Thank you dude. it works

  • @alessandrodossantos235
    @alessandrodossantos235 Рік тому

    THANK YOU!!! You have no idea how much tNice tutorials video helps!