3D Survival Game Tutorial | Unity | Part 1: Getting Started & Player Movement

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 448

  • @stonerbob5122
    @stonerbob5122 7 місяців тому +175

    my bro had this tutorial going on for 2 years, never seen anyone put in more effort than this guy

    • @HieuVu-lo6st
      @HieuVu-lo6st 6 місяців тому +2

      you should consider another engine after Unity policy updating

    • @stonerbob5122
      @stonerbob5122 6 місяців тому +5

      @@HieuVu-lo6st im using unity just for the sake of following this person

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 6 місяців тому +3

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @Corneliussanchez
      @Corneliussanchez 6 місяців тому +3

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @Sirbozo
      @Sirbozo 4 місяці тому

      ae

  • @TenrousaAthena
    @TenrousaAthena Рік тому +237

    You taught us while assuming we all have basic knowledge about Unity, but in my aspect, the course went well even with those who have zero experience in Unity. Your explanations are easy to understand and follow. Best Unity course I have ever watched so far.

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

      @pexels1479 cool?

    • @porridgegod42
      @porridgegod42 Рік тому +4

      @@sylvershelley8595 actually it's not cool

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

      @@porridgegod42 its amazing

    • @MrIssa2021
      @MrIssa2021 Рік тому +3

      I gave the 69th like to your comment!

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

      @@sylvershelley8595 yeah you're so funny bro

  • @AA_AmericanAbroad
    @AA_AmericanAbroad 11 місяців тому +19

    No way such quality content doesn't get tons of views. Starting these series and we'll see how it goes but scrolling through your channel videos did show how much quality content you produce

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @atmosphere145
    @atmosphere145 Місяць тому +3

    I went into this tutorial with zero Unity, Visual Basic or C# Programming knowledge. I have very limited exposure to scripting / coding and what little I do know is only self-taught. You were clear in your explanations and instruction. The video was easy to follow and paced appropriately. I will be watching this entire series - thank you for the time and effort you put into this. Instant subscriber here.

  • @4n7h4r4x
    @4n7h4r4x 9 місяців тому +6

    the idea of me making a game started as a joke and now i hope and will actually try and make a game hahaha , thanks so much for all ur efforts and time , so far seems like the best tutorial i landed on

    • @Corneliussanchez
      @Corneliussanchez 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

    • @DolphinWantsPeace
      @DolphinWantsPeace 5 місяців тому

      how's it working out?

    • @frk3316
      @frk3316 4 місяці тому

      @@DolphinWantsPeace ooga booga

  • @hunter-ci7dk
    @hunter-ci7dk Місяць тому

    "You're not an owl" 17:34 made me crack. Thank you so much, what a comprehensive, engaging and informative course you've made!!

  • @FepXBL
    @FepXBL 2 роки тому +18

    Excellent tutorial. I am definitely a beginner with game development, and I understood your explanations so easily. Thank you for making this for people like myself. Can't wait to continue learning from you.

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @prats2834
    @prats2834 Місяць тому +1

    Thank you so much for this series!
    You're one of those few youtubers, for whom I think "I'll give them money when I grow up"

  • @Boruebork
    @Boruebork 7 місяців тому +2

    I wanted to buy a unity course for 5000 Rubl, but then found your course, and left this idea. This is such good work, thanks for this diamond course!

  • @krutikagundecha783
    @krutikagundecha783 Рік тому +4

    This is amazingly helpful even for a beginner! Didn't find anyone else who explained everything so well! Best Unity Tutorial on the internet... Thank you so much for your contribution!😄

    • @cutyfttyggtffu7780
      @cutyfttyggtffu7780 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @Stacey-r8p
    @Stacey-r8p Рік тому +13

    Okay, so I had the same problem where I couldn't jump if I looked down. However, I did find a solution, probably a messy one, but so far it works:D. I changed the rotation in MouseMovement to 0 on X axis
    Added public Transform camera and then added the rotation for camera with x and y axes.
    Hooked up the camera to the slot in the script (to the right, where our components are)
    Then try it out and move the camera so it looks good. Now you can also see your feet! Or rather... One cylindrical foot:D.
    Anyway, if it breaks something later in the course, I will edit the comment.
    Thank you Mike for such an amazing course, I am having so much fun and it's the best course I have seen for Unity!

    • @Mikes-Code
      @Mikes-Code  Рік тому +8

      Amazing. The player setup is indeed really basic and not ideal because that was not the focus of the series. There are so many player controllers out there, and I just provided a simple one. The problem with the jumping is because we always check if the GroundCheck is near the Ground to be able to jump. But when we rotate the player, and look down, the "legs" go up, and so does the GroundCheck, so it no longer detects the ground. Another easy solution will be to increase the GroundDistance value to something higher, this way even when you rotate, the groundCheck is still close to the ground.

    • @likey_dikey235
      @likey_dikey235 11 місяців тому +1

      Bro, the same problem I found and you described exactly what I’ve just wanted to do, but now I am sure that it is possible solution ;)
      In addition, I think that this solution is better than the easy one given by author, all regards. There is one more problem other than having no ability to jump looking in feet: so, imagine you jumped and immediately you are looking on your feet and pressing S button to go backwards, and because in fact your body is already rotated you will fly some time into sky looking on the ground. The same problem when you jump and look on the sky, by this you like a fly, I mean you increase your being in fly mode and you increase the jump height. That is not good at all. And that is serious problem in perspective. So the main problem is rotating of the player capsule itself, because it’s position defines where axis are located, and these axis defines our movement. Also it may cause shadow problems in future.
      So, as I said, I have found that the best (for now) and native solution in that case is solution with simulation of rotation of the head by the applying rotation to the camera transformation.

    • @iyorguiflorez4041
      @iyorguiflorez4041 4 місяці тому

      So its 2024 but I just started this tutorial and also starting learning game dev. I found another solution, I added a sphere as a child of the cylinder (like a head) and attached the MouseMovement script and the main camera to it instead to player directly. probably also not the best solution but it works

    • @williamhermansente2252
      @williamhermansente2252 3 місяці тому

      I simply made 2 scrips. One for the rotation of looking left and right for the player. and one for looking up and down for the camera. that pretty much solves all the issues. you cant fly, you dont fall over when looking down or up and you can jump and walk forward while looking up or down. Only issue is that it is very unproffesional i bet. But it works for me and i am the most beginner of begginers in coding and unity. Hoped this helped

  • @ShreyasBhandarkar-wv3kv
    @ShreyasBhandarkar-wv3kv 20 днів тому +2

    I have 0 knowledge of unity and this is my first time touching the app and this tutorial is still perfect

  • @Skellybonesjones
    @Skellybonesjones Рік тому +2

    Thanks for making this bro, you are an absolute legend. Gonna try and get through all 40 vids.

  • @nexno27
    @nexno27 Рік тому +8

    the tutorial is very good and you explain everything in the script very well. this is the best tutorial i have seen in a long time! keep up the good work

    • @Corneliussanchez
      @Corneliussanchez 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @Dr3ampunk
    @Dr3ampunk 7 місяців тому +1

    thank you for this series! you've helped new Developers like myself understand the language and the inner workings of the system more than you know.

  • @Chrisvanrens
    @Chrisvanrens Рік тому +19

    I would HIGHLY recommend to use Unity 2019.4 for this tutorial series. I started following this tutorial in Unity 2021 and I ran into various errors later on with the importing of the Terrain tools, skybox and landscape assets. I am now redoing this in 2019 and it is very easy to follow.

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

      Thanks

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

      you should have told me im using 2022 ver

    • @FuzzyPlayz-pf5dm
      @FuzzyPlayz-pf5dm Рік тому

      im using 2022.3...

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

      TOO BAD IM IN WINDOWS 11

    • @Z767-c8h
      @Z767-c8h Рік тому

      @@FuzzyPlayz-pf5dm any problems? im staring also with same version, is it going to work ?

  • @grantzgames452
    @grantzgames452 8 днів тому +1

    Very easy to follow along with in this tutorial you do an amazing job at explaining everything in a way that clear and easy to follow thanks 👍

  • @gsinghjay
    @gsinghjay 2 місяці тому

    I just got to say, I'm doing game development for a class right now in uni and I have learned so much about the bear. Thank you so much.

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

    Amazing video, way better than bigger UA-camrs game tutorials

  • @domanzelmo9425
    @domanzelmo9425 2 роки тому +11

    Fantastic tutorial, keep up the good work!

    • @Corneliussanchez
      @Corneliussanchez 6 місяців тому

      Jesus Christ loves yall if yall didint know come to Christ repent non denominational King James Version John 3:16-17 16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. 17 For God sent not his Son into the world to condemn the world; but that the world through him might be saved.
      King James Version James 4:8 Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded.

  • @kendyrobot
    @kendyrobot 6 місяців тому

    Thanks so much for the tutorial. I finished Part 1, and everything worked great. I've tried a few tutorials, and this is the first one that works well. Appreciate all your hard work!!

  • @alissonhonostorio
    @alissonhonostorio 22 дні тому

    Because of your explanation of the RotationX I understood the axis rotation, omg I am so happy to have met your channel

    • @Aniwtxh
      @Aniwtxh 19 днів тому

      Can u help me when i clicked play my player just keep falling down and down

    • @alissonhonostorio
      @alissonhonostorio 18 днів тому

      @@Aniwtxh I can try, but my english is not the best one, how can i chat with you?

  • @hypereclipse4015
    @hypereclipse4015 2 роки тому +5

    Wow you deserve more subs! I understood this video so well! Great Job 👍👍

  • @RicardoSanchez-es5wl
    @RicardoSanchez-es5wl 11 місяців тому

    These tutorials are the best I’ve ever seen. You are a great instructor!

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

    You should be getting paid for this, some excellent tutoring. I must admit the maths of the stuff does boggle my brain, but if it isn't something that I'd need to understand fully well... I won't complain.

  • @ryeoma
    @ryeoma Рік тому +2

    even as a begginer, it was very easy to understand. thank you!

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

    thank you so much for this, you explain it so well and really show everything in detail so we really can understand what were doing and why we do it. I'm gunna keep watching all your videos they are amazing

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

    You're just a legend keep it up:)
    Love your Explanations

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

    Great tutorial ! clear explanations and everything makes sense

  • @codywilliamson1323
    @codywilliamson1323 5 місяців тому

    I like how this guy puts all the details in

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

    THIS IS AMAZING ❤ MUCH LOVE BROTHAH

  • @Piano_Tutorials_2023
    @Piano_Tutorials_2023 25 днів тому +1

    Brother very nice tutorial I am making a new game with few coding knowledge ur voice a bit funny because ig only I hear it in a bit of Russian accent but ur explanation is too good 👍🏻

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

    Such a nice explanation! I love it.

  • @AyushK-mq5dz
    @AyushK-mq5dz 2 роки тому +1

    Very Great and Helpful tutorial for all stages from advanced to Beginers

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

    WOW, You're Amazing before this Video i dont know how about i use Unity and with Your Playlist i can make now my Own Survival Game!! Thank you very Much i subscribe now!

  • @DawkaLwG
    @DawkaLwG 2 роки тому +2

    Hey! Thank You so much for your tutorial, it's amazing!

  • @Reanchi
    @Reanchi 19 днів тому

    So the game I wanna make is an XCOM like tactical RPG, the difference being, the player would directly control their soldiers in first person VR. So ill have to learn a bit from each of your tutorials a well as find some other resources if i wanna make this happen. But starting with your videos is super helpful!

  • @GaryParkin
    @GaryParkin Рік тому +4

    Thank you. A nice explanation of how the character movement works. Question please? Why did you use a cylinder, and not use a capsule? Also why not attach the camera movement script to the camera so the player's body doesn't move at weird angles? I'd think that would fix everyone's issue with jumping.
    I would think that if the z axis of the camera wasn't tied to the player and to the camera instead, the player could move forward and look left. BUT how would you then turn to a direction the camera was looking. An interesting challenge I'd think.
    Maybe attach the Y to the player but the X to the camera would alleviate the player body angle and still be facing in the right direction. Himmm.
    I'm new to Unity but not building games, so I'd like to know your reasoning please?

  • @QsPracticalNonsense
    @QsPracticalNonsense Рік тому +14

    I found the solution for those of you who might be wondering why you can't jump! Select your player and go to your (transition) "Y" value, this has to be less than your (script) "Ground Distance" value!

    • @p.rasmitadora4731
      @p.rasmitadora4731 Рік тому

      Thanks
      Though I just tried once and went to comments

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

      @@p.rasmitadora4731 This worked for me though some people were having a separate issue, some have said later in the series there is a type of clarification. I did not catch that clarification lol

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

      i don't see a transition Y value only position , rotation and scale

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

      @@xbrandonHe meant to say Y position. Mine is set at 2.5 which brings the player off the ground a bit. That's normal for starting first person games.

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

      thanks for posting this! helped me out I was having this issue. fixed now.

  • @vanillaobjective
    @vanillaobjective 5 місяців тому

    Thank you so much for these videos, with your help I'm finally making my dream little project

  • @TechTendanceXYZ
    @TechTendanceXYZ 6 місяців тому

    Thanks a lot, your tutorial is really clear ! I'll continue it ;)

  • @blackcomet0
    @blackcomet0 3 місяці тому

    i subscribed to this man because he put a lot of efforts🔥

  • @ssandzz
    @ssandzz 2 роки тому +2

    Really great explanations of the code

  • @davidrynn
    @davidrynn 2 роки тому +2

    This is amazing. Thanks!

  • @Mikes-Code
    @Mikes-Code  Рік тому +30

    Hey, there seems to be an ongoing problem with the Pastebin website itself. However, this should not prevent you from following the tutorial because I am showing all of the scripts in the tutorial. So you can simply copy it from the video.
    I will try to find a better solution when I have time, because Pastebin seems to be down a lot.

    • @slayer-oi2kw
      @slayer-oi2kw Рік тому +2

      exactly what i needed wow thank you so much

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

      Hmm why not using a github repo for this tutorial?

    • @jotarosgaming7761
      @jotarosgaming7761 10 місяців тому +2

      Maybe using github can make it easier

    • @spiritofnature603
      @spiritofnature603 8 місяців тому +2

      ground layer doesn't work and doesn't jump

    • @BadApple-um7vb
      @BadApple-um7vb 7 місяців тому +1

      you should use gist instead

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

    i love you man, you are the best, i love you!

  • @quickmix-streammusic7019
    @quickmix-streammusic7019 8 місяців тому

    7:00 you read my mind lol, i was literally thinking "I want to learn how to code too" lol

  • @alpmagirus
    @alpmagirus Рік тому +4

    mouse input is actually frame independent but by putting Time.deltaTime you made it frame dependent

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

    Thank you so much i love your content!

  • @MrEzioPvP
    @MrEzioPvP 9 днів тому

    Hey thanks a lot for this tutorial! Everything works, just one small thing if you could orient me the right way. When hitting play and waiting for unity to load up the scene, when it's ready and I click in it, it seems like the distance I traveled with the mouse until my click to focus the scene makes an offset with the camera on its xRotation (for the camera). So instead of staying in the middle facing forward, it rotates down. Any idea what it is?

  • @eldengod9655
    @eldengod9655 6 місяців тому

    This is one of the best tutoria!

    • @zephrus2072
      @zephrus2072 Місяць тому

      hi broo can you give the full project?

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

    Hey Mike!
    Thanks for the playlist, that's really a good one. I'm kinda person who can learn in the lab/with the apps, this is exactly what I was looking for hitting the game development since I'm already developer and am familiar with different dev environments.
    In this video, I'd like to point a minor detail about CheckSphere command. I am not sure but I think your illustration about this function is not valid; the position of the GroundCheck object would be the center point of the cyclinder, and it's the radius, not distance, between the ground layer and GroundObject. If I'm mistaken, sorry about that, and I'd like to learn why :)
    Thanks for this super playlist again :)

  • @toanpham4049
    @toanpham4049 8 місяців тому +2

    well i have a problem that if you look down. the position of the ground check will move with the player and i will can't jump anymore. so what i do is put the camera in the cylinder, throw the moseMovement to the cylinder and ... it work. btw thank for the videos. you are great.

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

    When I multiplied the sensitivity by TIme.deltaTime, it made it so my sensitivity would increase when looking at too many game objects. Looking into it someone said "Input.GetAxis(“Mouse [axis]”) gives you the amount of movement provided in the last frame. As a result, it’s already being scaled relative to your framerate" so removing Time.deltaTime fixed the issue :)

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

    This tutorial is really good and you explain the basics as well. so its perfectly fine for beginners.

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

    Dude is a legend thank you so much

  • @Deepakmunoz
    @Deepakmunoz Місяць тому +1

    Can you explain to us how to put a character and the animations with a first-person camera please?

  • @unodos9297
    @unodos9297 4 місяці тому

    Completely underrated!

  • @Z767-c8h
    @Z767-c8h Рік тому

    WOW just WOW !

  • @Heavenly-Frequencies
    @Heavenly-Frequencies Рік тому

    Thank you this is really helpful! ☺

  • @AtomicDurpYT
    @AtomicDurpYT 7 місяців тому +3

    I have noticed that the character can not jump when looking up or down. Is this a problem with the position of the checksphere being a child?

    • @burakosmancelik1435
      @burakosmancelik1435 5 місяців тому +3

      I saw the problem is ground check object is at the bottom of our cylinder but when you look up or down your bottom goes up thus not checking the floor

  • @ByteBurst57
    @ByteBurst57 Рік тому +4

    I don't know if its because I'm using UNITY 2022 and the video is shown in 2019, but I cant get my character (sphere) to walk. Can someone help me out here?

    • @tomharris8650
      @tomharris8650 8 місяців тому

      Did you ever figure this out? Running into the same problem, I can look around but not move at all

    • @TOESOR
      @TOESOR 5 місяців тому +1

      @@tomharris8650 at the player movement controler has to be set to player(character controller)

    • @GOLOGUU
      @GOLOGUU 4 місяці тому

      @@TOESOR thx!

  • @Paul3010clips
    @Paul3010clips День тому

    The best video ever

  • @FYFTYNDIGITSLoF
    @FYFTYNDIGITSLoF 10 місяців тому

    Really Good Tutoriol. Thanks a lot

  • @Philin-it
    @Philin-it Рік тому

    This is a huge help. I'm currently working on an open world game like eso but uses for honors combat system. 😅 hopefully it works out.

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

    Excellent tutorial😑😋

  • @smokinjoe9415
    @smokinjoe9415 9 місяців тому +2

    You have a bug. At 35 minutes in you should normalize the Vector3 named move. You are using move as a direction, and it should be a unit vector.

  • @SmartLearningAI
    @SmartLearningAI 9 місяців тому +1

    Tip: On the Player, Cylinder, Mesh Renderer, Lighting, Set Cast Shadows to Off

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

    good good good very useful!🤩🤩🤩

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

    Thanks for everything.

  • @IvanVenkov
    @IvanVenkov 2 місяці тому

    LOVE YOUR VIDS

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

    your tutorial is good keep going

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

    Best tutorial!

  • @Legta45
    @Legta45 6 місяців тому

    Thanks, very useful!

  • @shia9631
    @shia9631 4 місяці тому

    Totally random question. Bit on a journey with game dev. I implemented a raycast for ground checks is that a good way to approach things, or would it be performance heavy in the long run?
    Experience as a programmer, but not with Unity AT ALL!

    • @Mikes-Code
      @Mikes-Code  4 місяці тому

      @@shia9631 using a raycast to determin if the player is touching the ground, for things like jumping/flying is a common way to do it.
      A single raycast will not impact performance. If you had 1000 players then it may start to stack up, depending on the complexity of the scene.

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

    Thank you for this tutorial

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

    thanks bro that realy helped me 😊 😊

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

    Really good video you are a really good teacher. Can you make a day and night system?

  • @radial4343
    @radial4343 2 роки тому +2

    u deserve way more then 19 subs u deserve 1000000's of subs

  • @jcltv5477
    @jcltv5477 Місяць тому

    thanks a lot brow best tutorial

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

    Great Tutorial but I have an AZERTY Keyboard , do you know how to change the keybind on to z for forward and q for left

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

      we do it in project settings, there should be a Input Manager setting in it

  • @KILLEN-vt3wl
    @KILLEN-vt3wl 2 місяці тому

    I found that at 10:28 ~ i was running into an issue that said "The variable groundCheck of PlayerMovement has not been assigned."

  • @dcxweb
    @dcxweb 10 місяців тому +1

    These are great videos you're putting out - I must say though I'm shocked at what you're getting with unity performance from a GeForce GTX 1070 - my RTX 3060 was crashing my laptop (due to overheating) with hardly anything started, you have double my RAM but graphics RAM the same.. I've already ordered a new machine (as i needed one anyway) That'll be on a corei9 with this card "Graphics card: Nvidia GeForce RTX4070 12GB GDDR6X" and extra base RAM so it will be fixed but indeed to see this 1070 performing as it is i guess you have some other magic sauce going on :) - Although I did notice you have a better CPU, mine was also i7 but 2.8GHz 4 cores...with that said when unity is running CPU usage remained low, Thanks again for the content anyway!

    • @smokinjoe9415
      @smokinjoe9415 9 місяців тому +2

      That is because you lack proper cooling and also probably proper wattage on the P/S. Learn to build a pc correctly!

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

      @@smokinjoe9415 If you read the comment you would see I didn't 'build' any PC but anyway my new machine performs fine on these tasks...but indeed the memory requirements for 3D design shouldn't be under-estimated.. you mention cooling - again if you read my comment i was using a laptop...now all is well :)

  • @Username-m5v
    @Username-m5v 3 місяці тому +1

    Hey, does these codes still work that you linked in the description in 2024???

    • @Mikes-Code
      @Mikes-Code  3 місяці тому

      @@Username-m5v yes, everything should work fine. I'm monitoring these scripts.

    • @Username-m5v
      @Username-m5v 3 місяці тому +1

      @ Ok

  • @jakeforgey5378
    @jakeforgey5378 2 місяці тому

    Hey Mike, I'm rather late to this video, but any tips for someone who is using say Dinosaur or Quadrupedal or Bipedal creatures as the character model?

  • @alphazero4102
    @alphazero4102 5 місяців тому +1

    I have some problems, the higher I look the higher my player jumps and walks really fast, If I look down I can only jump very low and I can only move very slow, if I look completely down my player won't move at all, do you know what the problem could be?

  • @Biggiest_noob
    @Biggiest_noob 5 місяців тому

    5:24 the Visual stuio wont open and it says
    There is no spplication det to open the document "Player.Movement.cd".
    I am on macbook pro

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

    its i good tutorial but i have one bug when i move right or left i am faster then forward or backward how can i fix that

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

    The Movement system tells me the error " Assets\Scripts\PlayerMovement.cs(13,5): error CS0246: The type or namespace name 'Vector3' could not be found (are you missing a using directive or an assembly reference?) " What have i done wrong?

    • @Mikes-Code
      @Mikes-Code  Рік тому

      please copy the entire line of code where you have the vector, (line 13 of the MovementScript). paste it here so I can see what is the problem.

  • @nei6387
    @nei6387 2 роки тому +2

    its like i am in spectator mode and i fly around also its like the scripts create there own camera so i can see the cylinder just standing there

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

    THE GOATTTTTTTTTTTTTTTTTTTTTTT

  • @WyMustIGo
    @WyMustIGo 9 місяців тому +1

    Nice tutorial! BTW, Euler is pronounced "Oiler"

    • @WyMustIGo
      @WyMustIGo 4 місяці тому

      Guess he doesn't like criticism... kind of looks stupid if he can't use the correct terminology.

  • @ngoc7269
    @ngoc7269 5 місяців тому

    first thank you for a good tutorial video, second i tried and realize one problem: objects *Groundcheck* will move with your player view so when you look up or look down too much you can't jump because the *Groundcheck* is no longer in the check zone. So how can we fix it?

    • @Mikes-Code
      @Mikes-Code  5 місяців тому +2

      This movement controller is very basic. A simple fix to this problem will be to increase the "groundDistance" variable, so that even when you look up or down, it will still be triggered as "grounded".
      A more advanced solution will be to separate this controller into 2 parts. One will be the body cylinder that will deal with movement and the second part will be a "head" to deal with the rotation.
      Alternatively, you can download a more advanced controller from the Unity assets store.
      You can find many nice and free 1st person controllers there.
      It will require some adjustment but not something complicated.

    • @ngoc7269
      @ngoc7269 5 місяців тому

      @@Mikes-Code thanks you, sir🤓

  • @poonambhosle8816
    @poonambhosle8816 11 днів тому

    I did all of this but when I press play, the cursor does not disappear and let me look around. I also could not walk around when I pressed w, a, s, d.

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

    I followed every exact step as you, and when I put the camera under the player object, when I rotate the player, it only rotates the cylinder and not the camera. The camera just stays put. Any advice or help? Thank you!

  • @Flycs_
    @Flycs_ 5 місяців тому +1

    i have a question how do i fix my player clipping into the floor and staying there?

  • @thuongtrinhvan2001
    @thuongtrinhvan2001 7 місяців тому

    Thank you so much

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

    There is a problem with this jumping mechanic though. If you are looking up or down at enough of an angle, you are not able to jump due to the entire player model rotating (along with the ground check) meaning it sees you as not technically on the ground.

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

      one of the comments says the solution is checks

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

      @@brom1420 The ground check rotating with the player, or the bottom half of the player model rotating is the problem.

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

      @@SweatyCubes I've already made it so that only the camera rotates and you can jump wherever you look

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

      @@brom1420 Is this in a future video?

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

      @@SweatyCubes No, you can to send
      your discord and I'll explain it to you

  • @potatocat2474
    @potatocat2474 3 місяці тому +1

    Hey but when i try and play it, my camera falls to the ground. how can i fix that?

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

    hey, while i was following this video when i hit play my player starts by looking at the ground for some reason can you please explain why would this be happening