THIRD PERSON MOVEMENT in 11 MINUTES - Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 529

  • @davegamedevelopment
    @davegamedevelopment  Год назад +21

    If you need help with any of the code shown, just visit the "coding-help" channel on my discord server :D
    Also you can find many more movement tutorials on my channel in the "Tutorials!" playlist - I really hope they help you on your further GameDev journey!
    And in case you're interested in getting access to my full MOVEMENT LAB, where I combined all of the movement abilities shown in the tutorials and some more, check out the trailer:
    ➡ MLab Trailer: ruclips.net/video/9_Q9UxK7VF8/видео.html
    Also, since I know lot's of you are interested in ranged combat as well - I can gladly announce that I'm about to release my RANGED COMBAT LAB as well:
    🏹 RcLab Trailer: ruclips.net/video/j2YplilHjCA/видео.html
    Thanks so much for watching, hope this tutorial has helped you!

    • @Scifics
      @Scifics Год назад

      Cinemachiene isn't popping up at the top of the screen

    • @samtornblom2393
      @samtornblom2393 Год назад

      @@Scifics You probably have a newer version of cinemachine. Right click in the hierarchy tab and then press cinemachine instead.

    • @yerkobarrientos166
      @yerkobarrientos166 Год назад +2

      @@Scifics GameObject > Cinemachine

    • @GamerIntusiasm
      @GamerIntusiasm Год назад

      Hey man i was really wondering when you are going to use late update functions and delta.time and etc stuff for pdocut ready quality scripts? Would be nice to see it

    • @lucutes2936
      @lucutes2936 Год назад

      are you Brackey?

  • @supm8te751
    @supm8te751 2 года назад +116

    I just want to let you know that, as a college student trying to accomplish my childhood dreams, you helped so much by teaching me tons of useful coding examples. Everything is in such high quality and easy to understand. Thank you so much for your guide.

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +14

      So glad to hear that! Thanks for watching and best of luck with your dream game!

  • @theg.o.a.t100
    @theg.o.a.t100 2 года назад +134

    I’m having a very hard time with this tutorial because of the hierarchy setup and just the sudden appearance of all of these parts is super confusing if you could just have a breakdown on how you put all of those components into it the toutorial would be a lot more helpful becuase I just can’t go off of the sudden appearance of all of these components and I have no experience so please excuse me if this seems like something everyone would already know

    • @galaxyshorts7869
      @galaxyshorts7869 Год назад +1

      If you are having a hard time with that, maybe this tutorial is just too hard for you. Try getting more comfortable with unity before following this tutorial.

    • @bubbaboogsvr
      @bubbaboogsvr Год назад +46

      @@galaxyshorts7869 I think they are talking about when the orientation object suddenly appears with no explanation

    • @SolarSoftMedia
      @SolarSoftMedia 9 месяцев назад

      @@galaxyshorts7869 I have 5 years experience in Unity and I'm having a hard time following along. It's because of the way he did it. There's another tutorial that should be followed first. And @theg.o.a.t100 should be following that, if only he linked to it in his bio like he mentioned he would do.

    • @Ace_Monke002
      @Ace_Monke002 8 месяцев назад

      on the First Person Movement he goes over it a bit, really helped me out when he mentioned the movement stuff that i needed

    • @SeediesNuts
      @SeediesNuts 18 дней назад

      Nope similar issues. It would be nice if people could explain things literally word by word on everything. But no ones got that available yet. Just "let's see how to do this in 2d- -" no just show a guide for dummies. ​@@galaxyshorts7869

  • @TonyTovar
    @TonyTovar 2 года назад +52

    Some of you may be having the same issue I was if following along with this tutorial with the latest version of Cinemachine. The combat camera wasn't keeping the position of the freelook camera and vice versa so if I did a 180 with one camera and then switched it would move back to the other side of the player. To fix this there's a checkbox in the "Transitions" section of the CM camera called "Inherit Position". Turn that on for all cameras involved and they should follow fine.

    • @yuzarsif1931
      @yuzarsif1931 2 года назад +1

      Thank you soooo much for the information :)

    • @Sooshoo_sans
      @Sooshoo_sans Год назад +2

      thanks so much. but do you know how i can make it transition faster?

    • @dr.ng3635
      @dr.ng3635 Год назад +1

      ​@@Sooshoo_sans You can just go to the default blend in the CinmachineBrain and just lower the S value

    • @jinougaiv220
      @jinougaiv220 Год назад +2

      DOOD!! God Bless You, You are AWESOME!!!!

    • @abelard_rah
      @abelard_rah 9 месяцев назад +1

      Man you saved may day,thank you!!!!

  • @damamapi
    @damamapi Год назад +69

    For anyone having a hard time at 4:40, because of "Camera Holder" and "PlayerCam", you put the code on the ThirdPersonCamera, the other cams are from another tutorial.

    • @togemetVR
      @togemetVR Год назад +1

      thanks

    • @pikachubolt2001
      @pikachubolt2001 Год назад +1

      So you're saying I put the code in the cinemachine camera?

    • @wolf33b
      @wolf33b Год назад +1

      thank you. i was stuck in this and do trial and error. even try to create empty script that place inside camera but still have problem. but now all fixed

    • @haydendev
      @haydendev Год назад

      help me

    • @damamapi
      @damamapi Год назад

      @@haydendev what do you need?

  • @GarudaRamudasRumpusRoom
    @GarudaRamudasRumpusRoom Год назад +35

    I noticed that the character would start to follow an "arc" and gradually drift from their original starting position when continually moving side to side with A and D as well as when strafing in other directions. For anyone else who needs help fixing this:
    Under your Cinemachine Freelook camera, go to Orbits and expand the Body tab for Top Rig and set X, and Z damping to 0. Repeat this for the Middle and Bottom rigs. Now the camera will follow the character perfectly without rotating itself to track them as they move to the sides, which also keeps your movement inputs and camera angle perfectly consistent instead of gradually drifting.

  • @sheepboy932
    @sheepboy932 2 года назад +26

    Never forget the most important step in a coding tutorial, .75x speed

  • @pourmydrank
    @pourmydrank 2 года назад +19

    This tutorial is pretty much exactly what I was looking for, it's honestly so undera- ohhh you released this yesterday LOL

  • @ProxyDoug
    @ProxyDoug 2 года назад +2

    This channel is a gold mine.

  • @NextGenBlack
    @NextGenBlack Год назад +6

    if anyones having trouble getting the camera set up withthe new cinemachine they moved the menu to the scene create object menu and you need to put the camera component on the cinemachine brain not as a gameobject but a component

  • @jwlewis777
    @jwlewis777 Месяц назад

    Definitely the best movement/ camera tutorial I've watched! And it has an awesome Frame Rate!
    Thank you!

  • @AnmolTheSage
    @AnmolTheSage 2 года назад +39

    Dave you're the sole reason as to why I'm sticking with game development; these tutorials are so helpful, can you make a video on a dash system?

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +11

      Thank you so much, really means a lot to me! And I'm currently working on a Dashing Tutorial :D

  • @hypercharge26
    @hypercharge26 2 года назад +8

    this tutorial can be a kickstarter to many glorious opportunities for game devs! ur soo underrated!

  • @r6scrubs126
    @r6scrubs126 2 года назад +22

    why do you completely skip over adding a cinemachine brain component to the normal main camera. Spent 20 minutes banging my head against a wall because I didn't have that. If you're going to do a step by step tutorial for beginners, you should probably cover all the steps. Not start with some stuff already done

  • @GamerGaruud
    @GamerGaruud 8 месяцев назад +2

    love the capsule effect! so hip and funny lol

    • @akshaykatakwar8154
      @akshaykatakwar8154 2 месяца назад

      I know right. I want to know how do I make this. Can you please help me how exactly can I make this effect?

  • @ennoluto
    @ennoluto 2 года назад +6

    For anyone looking to fix the jitter on combat camera, it's because the animation is uneven, this happens because some of the code he used was used in Update() instead of FixedUpdate() in the Movement script. To fix it move SpeedControl() and the ground drag block of code into FixedUpdate() and the jitter should be gone.

    • @zeyadelgendi1288
      @zeyadelgendi1288 2 года назад +1

      I tried this but didn't work sadly, everything is still jittery, i even moved everything in the camera script to fixed update instead of update

    • @29erik99
      @29erik99 Год назад +5

      @@zeyadelgendi1288 late response, but if you still have this issue, i found that messing with the "Update Method" on your CinemachineBrain component, and removing dampening on your cameras can fix it. i spent ages messing with settings back and forth but i hope it helps ^^

    • @ketaminemike3308
      @ketaminemike3308 5 месяцев назад

      @@29erik99 Thank you! Late update fixed it for me, also in my game the time scale was set to 2 to make everything physics related faster, so ticking off the Ignore TimeScale check helped a lot, i hope it helps someone else

  • @OhAzanChannel
    @OhAzanChannel 2 года назад +8

    Wow, this is gem. All in one covered in single video. Not too fast, not too slow, easy to pickup. Very nice 👍🏼

  • @mugheesahmed588
    @mugheesahmed588 Год назад

    Bro you are much better than those with millions of subscriber out there i have learned a lot from you..

  • @cloudplayer269
    @cloudplayer269 9 месяцев назад

    I finally found a tutorial that gets to the point. Thank you.

  • @andreamasu5357
    @andreamasu5357 2 года назад +2

    I can’t express how much i love you right now!! Thanks you so much! I’m working on a Multiplayer game and this will be essential to me

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +2

      So glad to hear that! Best of luck with your game

    • @andreamasu5357
      @andreamasu5357 2 года назад

      @@davegamedevelopment Thank you man! You deserve the best for real

  • @TW-bh2mi
    @TW-bh2mi 2 года назад +5

    I just did this myself. Took me two days, whish i knew this was coming.

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +3

      Haha that's though, but doing something yourself is also very important when learning how to code :D

  • @letsseethegame55
    @letsseethegame55 2 года назад +8

    I'm have watch your video really easy to understand. Thanks for the explanation 🥰😻

  • @lowkeydev
    @lowkeydev 2 года назад +1

    You are seriously underrated, loving the easy to understand content

  • @jQ_theeNHK
    @jQ_theeNHK 2 года назад

    Thank you so much for this tutorial series! Very much appreciated. Can't wait to see what else you decide to add

  • @ozdoesstuff5678
    @ozdoesstuff5678 Год назад +7

    idk if im just stupid and not seeing some thing i missed but i went through the whole video 2 times and the cameras arent working as shown i followed the scripts exactly and the player just wont follow the camera.

    • @JackONeill497
      @JackONeill497 11 месяцев назад +1

      A bunch of stuff is missing in the video. You need to add a CinnemachineBrain component to your camera and then it'll work.

  • @firstname9928
    @firstname9928 Год назад

    Great video! Was frustrating to figure out the issues I had with my project, but it worked out perfect in the end.

  • @thatinusitatus
    @thatinusitatus 2 года назад +1

    this just flew WAY over my head.

  • @adarshsahu6724
    @adarshsahu6724 Год назад +1

    Such an Insightful tutorial. You made it so easy to understand. Thank you for the help

  • @bigyeetus2.5
    @bigyeetus2.5 2 года назад +1

    Okay wow this is literally the most helpful tutorial I've ever watched. Thank you so much! :D

  • @meerbalaj5235
    @meerbalaj5235 Год назад

    Absolutely love the tutorial. It has helped me learn about cinemachine cameras so much!!

  • @Yurko_gt
    @Yurko_gt 2 года назад +2

    Your tutorials are so helpful! Thanks. :)

  • @muhammadawaiskhan4068
    @muhammadawaiskhan4068 Год назад

    Thnakyou, these tutorials are so helpful, kindof inspires me to make a parkour game when i gather enough knowledge. Love you shisho

  • @candleeyed
    @candleeyed 2 года назад +7

    thank you so much for this! i usually struggle a lot with video tutorials, but this was so clear and helpful i managed to get one step closer to making my dream game!

    • @safdardeveloper3804
      @safdardeveloper3804 2 года назад +4

      How did you even understand he kept changing his hierarchy structure without even saying anything?

  • @videochantel6069
    @videochantel6069 Год назад +6

    Jumps too much from one thing to another. Cannot follow. Needs an update

  • @noone-dev
    @noone-dev Год назад +1

    This tutorial helped me, thanks.

  • @sweshi5240
    @sweshi5240 2 года назад +9

    Hey dave i have a simple problem when regarding the cmobat look at style. when I look around the player does not rotate towards where the camera is looking i have checked the code multiple times and it is the same as yours

  • @kakarotsan3030
    @kakarotsan3030 2 года назад +4

    You don't have to deactivate the cameras. You can blend between Cinemachine cameras by altering the priority value through code. Deactivating the cameras can actually mess up the blends in some cases.

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +2

      Ok thanks for the feedback! I don't use cinemachine that often, was actually quite surprised that it blends even though I'm just deactivating them haha :D

  • @Soliistru
    @Soliistru Год назад

    Thank you so much for this tutorial! I've looked at a million, but never could figure out the " combat " type camera where in the character is always facing forward. Thank you thank you thank you!!!

  • @Fuzen363
    @Fuzen363 2 месяца назад +4

    1:10 i dont know how to import cinemachine i cant find anything

    • @lucascuda7012
      @lucascuda7012 15 дней назад +1

      If you managed to Install it, it's already integrated in, no need to import, instead of waiting for it to pop up on a new tool window like happened to him at the video, Right Click on the hierarchy tab, you will see a new option "Cinemachine" near the bottom.
      I had the same problem

    • @TDersadT
      @TDersadT 7 дней назад

      @@lucascuda7012 your comment help me a lot XDD tyyy

  • @HarshaKarteek
    @HarshaKarteek 2 года назад

    you deserve more views man nice content

  • @Dahxelb
    @Dahxelb 11 месяцев назад +3

    While helpful, I want to say it is a bit irritating when I unknowingly click on this video with the goal being to learn how to SCRIPT MY OWN 3rd person camera. If I want to learn how to make a 3rd person camera/movement, and then just be told "just download and implement this pre-made package lol", it's a bit grinding.
    But other than that, this video was very well made and did help me out what I need to think about, so You still earned my Like.

  • @gamefeegz2365
    @gamefeegz2365 2 года назад +2

    This was great and you gave us the cherry on top of telling us how we could potentially mess up if we follow your other tutorials. Brilliant.

  • @alod4412
    @alod4412 2 года назад +1

    that's what i want for a long time! thanks for sharing!

  • @noirlavender6409
    @noirlavender6409 2 года назад +2

    I love you man, thank you. I hope you keep it up. Not to raise comparisons but you're among the best tutorial makers we have right now

  • @TheViolentDwarf
    @TheViolentDwarf 2 года назад +1

    YAY WE GOT A NEW TUTORIAL IN THE SERIES 😁

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +2

      LET'S GO! :D

    • @AquariaAiryglyphia
      @AquariaAiryglyphia 2 года назад +1

      @@davegamedevelopment OMG! WHEN IS SOON FOR THE DOWNLOAD LINK?! O_O CAN YOU UPLOAD IT TO MEGA FOR NOW! I have been TRYING to find a Third Person movement system that works with Cinemachine and allows the player to move in the direction the Cinemachine camera is facing and also rotating the player whilst still being able to move the player. Rotating the player without the player actually MOVING when hitting A / D keys but still rotating.

  • @Cattailbruh
    @Cattailbruh Год назад +4

    I copyed the code perfectly and it is not working. I would point him west, press forward and he'd move north. I am just starting unity, please does anyone know what I can do to fix this.

  • @lucasx.c.
    @lucasx.c. Год назад

    You're amazing dude, thanks a lot!

  • @lauramclane5790
    @lauramclane5790 2 года назад

    your tutorials are absolutely amazing!! thank you so much

  • @gokulpranesh289
    @gokulpranesh289 4 месяца назад

    Thank you! this is a gem.

  • @Kurczaq
    @Kurczaq 9 месяцев назад +3

    1:48 Please help, i did everything what you did but when clicking play the camera was automaticly zooming out. What i need to do?

  • @Diamond-yn4nu
    @Diamond-yn4nu 2 года назад

    the tutorial worked just fine, thanks

  • @caki1125
    @caki1125 2 года назад +5

    I have a problem, when I look around I just keep going in the x or z direction of the world but not the direction where the camera is facing.

    • @azazel7502
      @azazel7502 2 года назад +1

      I have the same problem, have you figured it out?

    • @caki1125
      @caki1125 2 года назад +1

      @@azazel7502 sadly no

    • @futurekip9590
      @futurekip9590 2 года назад +1

      same issue here

    • @futurekip9590
      @futurekip9590 2 года назад

      its very simple how to fix it i accidently put the firstPersonCam script on the player object but it needs to be on the main camera thats how i fixt it i hope it works for you the same.

  • @G0ldAceTr1x
    @G0ldAceTr1x 2 года назад +4

    I keep getting Look rortation viewing vector is zero in console and can't turn the player model without using the walking commands and even then it doesn't walk properly it would just keep walking off in one direction.

  • @karage1250
    @karage1250 2 года назад +1

    That's so cool!!! Thanks 👍

  • @conedome6845
    @conedome6845 Год назад +3

    An issue I'm havinng is that the capsule will start to lean down toward the ground when looking down and that is causing issues with movement like I can't move as the character is trying to move down into the floor

    • @stephenbuchanan6397
      @stephenbuchanan6397 12 дней назад

      Hey I'm having the same issue did you ever get it fixed

  • @JSO18
    @JSO18 2 года назад +12

    This is one of the best character controller tutorials on RUclips. You deserve a lot more attention for this. One question: it there a way to increase the speed that the camera transitions between camera angles? the transition feels a little too slow for a game where you have to transition often and very quickly.
    Edit: also, in the first person movement video the gravity seems much higher than mine is. I ended up using a script to manually add a custom gravity force but I was wondering if there was a better way to do it.
    Edit again: I also noticed that the two separate cinemachine cameras save their last position before you switched away from them, meaning sometimes when you switch it can completely turn around your camera view and player which is unideal. is there any way to update the position of the cameras when you switch to them to avoid this?

    • @JSO18
      @JSO18 2 года назад

      I figured out how to change the blend speed, in the cinemachine brain on the main camera you can change the amount of time the blend takes under default blend.

    • @JSO18
      @JSO18 2 года назад +1

      I figured out a solution to the last question too: alongside each cinemachine game object, save each cinemachine as a cinemachine.cinemachineFreeLook as well. then, in the camera switch function, use if statements to find out what the current style is and than use the cinemachinefreelook variable of that camera to find out what its current x value is. then, set that x value to the camera you are switching to. I probably made that way more complicated than it needs to be but it works so I'm happy.

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +3

      Thanks a lot man! Also glad that you could fix most of the problems - and thanks for sharing the solutions with others!
      As for the gravity, yes there is a better way, go to Project Settings -> Physics -> Gravity and change it to 0, -30, 0

    • @kersensei
      @kersensei 2 года назад +2

      @@JSO18 hey im having the same issue, i understand you solution to a degree, you mind posting that bit of code please. thanks

    • @nealfinn4691
      @nealfinn4691 2 года назад

      @@kersensei Me too, a little bit of code will help

  • @floofie_3
    @floofie_3 Год назад

    thanks for this nice and easy tutorial

  • @niscogamedev
    @niscogamedev Год назад +2

    I'm havin a hard time at 4:40, because you're using that "Camera Holder" and "PlayerCam" but you haven't talked about that, i'll be really happy if you can elighten me about it

    • @radon5240
      @radon5240 Год назад +1

      Same, please tell me if you know how to fix it

    • @niscogamedev
      @niscogamedev Год назад +2

      @@radon5240 You put the code on the ThirdPersonCamera, the other cams are from another tutorial

    • @radon5240
      @radon5240 Год назад

      @@niscogamedev ohhhh, thx1

  • @mediamermaid333
    @mediamermaid333 Год назад +1

    Thank you!!

  • @Plaguestris
    @Plaguestris 3 месяца назад +1

    this video was helpful but by thor was it painful, typing to fast for me and it felt like thing weren’t explained enough, or at least as much as id like it to be

  • @bdd740
    @bdd740 2 года назад +1

    This is awesome thanks.

  • @22marshmellows54
    @22marshmellows54 2 года назад +1

    this is awesome :)

  • @jimmyzonnow4666
    @jimmyzonnow4666 Год назад +2

    I cant find cinimachine at 1:24 you clicked on it on the whit part for me it isn't there and i pressed install

  • @nawodyaishan
    @nawodyaishan 2 года назад +1

    Hats off Man

  • @bulshboicarti
    @bulshboicarti 2 года назад +2

    Have you done the grappling mechanic yet? Not sure if I've missed it

  • @blushell850
    @blushell850 2 года назад +1

    for anyone trying to find the cinemachine window, GameObject > Cinemachine

  • @channel11-n
    @channel11-n Год назад

    these videos are the best

  • @masterpeace47
    @masterpeace47 8 месяцев назад +1

    I really like the shader of your capsule. Can you make a tutorial?

  • @Diamond-yn4nu
    @Diamond-yn4nu 2 года назад +1

    Excellent thank you

  • @Cappuccinoitself
    @Cappuccinoitself 3 месяца назад

    great video
    thanks

  • @juanluisg6980
    @juanluisg6980 9 месяцев назад +1

    [2:35] _Dead Zone_
    Currently, in version 2.6.17, the dead zones are set to 0.
    Maybe they heard you XD

  • @Camilo16l
    @Camilo16l Год назад

    Thank you very much :D

  • @ps5games821
    @ps5games821 2 года назад +1

    Great tutorials

  • @garebrylls
    @garebrylls 2 года назад +4

    Getting quite a bit of "jittery" movement when I switch to combat mode with this given implementation. has anyone else faced this issue? If so, is there a solve?

    • @IamNerva
      @IamNerva Год назад +1

      did you figure this out? i have the same issue

  • @123eddie
    @123eddie 2 года назад +3

    This is the perfect tutorial but, the camera is quite "jittery" for me. Anyone know the fix?

    • @user-no2sz2sy4h
      @user-no2sz2sy4h 2 года назад

      hey, did you fix this?

    • @123eddie
      @123eddie 2 года назад

      @@user-no2sz2sy4h Not really, but it was better when I played in fullscreen

    • @gabrielfavaro2665
      @gabrielfavaro2665 2 года назад

      @@123eddie it was for me too. turns out this video's method isnt smooth at all. Im looking up on another one and it goes much better.

  • @imHenry_PlayZ
    @imHenry_PlayZ 7 месяцев назад

    For anyone having trouble cause the character won't jump , just set the whatisground to default and it should work

  • @asdcaa3
    @asdcaa3 2 года назад

    Can't wait for the implementing of blender animations and models into unity tutorials! I hope

  • @andyweightman-pilv5704
    @andyweightman-pilv5704 2 года назад +2

    Hey! I have been following this series, and it's awesome! But, could you do a tutorial on adding footsteps to this system? :)

  • @paraloski3040
    @paraloski3040 7 месяцев назад +1

    what could be the reason that my character doesnt turn to where i walk. he keeps facing one way

  • @futurekip9590
    @futurekip9590 2 года назад +5

    It's a very helpfull tutorial, but i have two issues: First my player doesn't rotate to where the camera is looking in combat mode. Second in the normal and topdown mode he does not now what the forward direction is. So if i am looking to the right and i want to walk to the right, i still need to click D on my keyboard but it should work when i click W. Does anyone now how to solve this issues?

    • @futurekip9590
      @futurekip9590 2 года назад +3

      its very simple how to fix it i accidently put the firstPersonCam script on the player object but it needs to be on the main camera thats how you fix it i am so dumb

    • @davegamedevelopment
      @davegamedevelopment  2 года назад

      No problem, glad you fixed it :D

    • @MrPonchovie
      @MrPonchovie 2 года назад

      @@futurekip9590 thanks for the solution, i had made the same mistake!

    • @Pineconic
      @Pineconic 2 года назад

      @@davegamedevelopment Hi Dave, I'm kind of in his boat too. This is only happening for the combat camera, but every time I activate it, the player object only keeps his rotation from the previous camera setting, and doesn't ever rotate in combat mode. What might I be doing wrong?
      {Edit: If I disable the other cameras, then the character will turn the correct direction every time I move forward, but if they are enabled upon bootup, for some reason he can no longer turn.

  • @nicolasportu
    @nicolasportu 2 года назад

    Outstanding!

  • @hmmm3649
    @hmmm3649 4 месяца назад +3

    Why are you skipping over so many points??? I got so lost. Where did you attach the script? Under what gameobject did you put the model? and so many more...i followed the code tutorial fine but the in-game setup is wack and now my character cant move

  • @bhoffman1967
    @bhoffman1967 2 года назад +4

    "CameraHolder" is shown in the hierarchy, but you don't mention what it is. Can you shed some light there?

    • @fulldivegames667
      @fulldivegames667 2 года назад +4

      Sorry I'm two months late here but just in case anyone else is struggling with it, It's just an empty game object to hold the "Main Cam" which he renamed "Player Cam". Which I think is mainly there for organization so it's not required. But the main cam is what the Thirdpersoncam script gets attached to.

  • @trongnamtran1451
    @trongnamtran1451 2 года назад

    thank you so much

  • @mrrwow
    @mrrwow 2 года назад +1

    The rotation camera thing isn’t working for me….went through the code several times and still doesn’t work……

  • @takacao8373
    @takacao8373 2 года назад +3

    you helped me so much! Thanks a lot man. However, I am stuck with something I don't know how to fix, which is whenever I try to switch camera, it also change the direction of my character as well. I think it because each cinemachine camera has different x,y,z coordinates when it was activated, and because the cameras don't line up, so the script that make the character moves to where the camera look at is kinda mess it up a little bit. Do you know how to fix this? Thanks a lot again!

  • @toastyyybeats
    @toastyyybeats 2 года назад +2

    when i install cinemachine it doesnt show up in the top toolbar, instead it shows under the components menu, and when i add it to the scene its parented to something and it doesnt work like yours does, i installed it the same way you did.

    • @HR-hg8yr
      @HR-hg8yr 2 года назад

      it's moved to gameobject menu

  • @tocinoIQ
    @tocinoIQ Год назад

    Thank you so much now im starting making money

  • @tdgray978
    @tdgray978 2 года назад +2

    When I try this, the camera jitters when I move directly left or right. Anybody have any ideas why this might be the case?

  • @BadBanana
    @BadBanana 2 года назад +1

    Did you remove the dash video? I just clicked a notification and can't find the video anymore 🙃

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +2

      Weird, try refreshing a few times and tell me if it works - would be bad If Not haha

    • @BadBanana
      @BadBanana 2 года назад

      @@davegamedevelopment aye yeah it's appeared a few hours later.
      Guess youtubes servers are getting a bit full.
      Doesn't surprise me haha they must need an office block to store it all

  • @joseph-ianex
    @joseph-ianex 6 месяцев назад +2

    1 step closer to making dark souls

  • @hunterfox6230
    @hunterfox6230 Год назад

    Okay! I struggled with this for a long time! BUT if your Orientation is not rotating make sure that the 3rd Person Cam is placed on the Camera Object! NOT ON THE PLAYER!

  • @nickcantanimatethis
    @nickcantanimatethis 2 года назад +2

    Can you make a gliding turtorial with this script?
    (If there are two times the same comment I'm sorry my YT is a little bit buggy)

  • @candleeyed
    @candleeyed 2 года назад +2

    hi, i'm running into a problem.. when i go to test the camera movement/player turning (the first code tutorial here), my player character just falls to the side and spins around there, as well as not moving when i move the camera. it happens when i pres WASD or the arrow keys. i have my player object named 'playerbody' instead, but i don't know if that would change anything. i'm also not sure where the code itself goes, as i have the player camera and the CM freelook. sorry for the long comment, but if anyone has any help that'd be awesome!

    • @CloudlessStudio
      @CloudlessStudio 2 года назад +1

      I believe the issue comes from you putting your script on the wrong object. My guess you added it to the player, instead try putting it on the main camera!

  • @deejay117
    @deejay117 Год назад +2

    Hello! First of all, great tutorial! Has helped me a ton thus far! Second, I believe I have encountered an issue. Whenever I start the game, it appears that forward is defined as only one direction (ex: my camera could be looking at the players face, but when I go forward it looks and feels like the controls are reversed.) I'm not sure if I'm doing something wrong, as I am completely new to Unity (and coding in general), maybe forgot to properly define a variable, but again, I'm new and don't know much. If it helps in diagnosing, the console repeatedly spams "Look rotation viewing vector is zero", so maybe something to do with that? I simply do not know. But, help would be appreciated! (sorry for typing a whole novel of a comment)

    • @owenroughley1889
      @owenroughley1889 Год назад +5

      I made this mistake, it was solved by putting the ThirdPersonCam script onto the CM Freelook Camera rather than on the player. Where to put the script isnt specified in the video, so put it there

    • @Devilclown1607
      @Devilclown1607 Год назад +2

      @@owenroughley1889 I did as you suggested, and it still doesn't work for me :(

    • @calebgunner
      @calebgunner Год назад +1

      @@owenroughley1889 You are a friggin lifesaver!! Thanks a lot yow 😭

  • @WhimzyInteractive
    @WhimzyInteractive 2 года назад +1

    Player wont change what "forward" is for them despite camera moving. How would I do about fixing this?

  • @waynedaley6079
    @waynedaley6079 2 года назад +1

    Going Thru this tutorial but I don't see how the CameraHolder was set up can you explain this ?

  • @mrworldwide9172
    @mrworldwide9172 2 года назад +4

    can you make third person using rigidbody and not with cinemachine and character controller
    Dont get me wrong i like your videos but i just want to know how can it be done with rigidbody only
    And can you make series on full body awareness FPS controller in unity?
    There are no tutorials on that for unity though unreal engine has a lot of tutorials for that.
    thanks and you and your videos are awesome thanks for teaching us for free
    hehe

    • @AquariaAiryglyphia
      @AquariaAiryglyphia 2 года назад +2

      Do it with Rigidbody, but also do it both with AND without cinemachine. I prefer Cinemachine but that's just me. I used to dislike Cinemachine. I'm only asking for with AND without in order to benefit others and not just myself. :)

    • @davegamedevelopment
      @davegamedevelopment  2 года назад +3

      I did use a rigidbody in this tutorial :D I sometimes call the whole system a character controller, but it's based on a rigidbody.
      And if you don't want to use cinemachine that's fine, then you need to make a camera script and code all of the rotation yourself :D

  • @ShourovKundu
    @ShourovKundu Год назад +2

    At 4:36, (line 27) why'd you change playerObj.forward instead of player.forward? The first way doesn't change the orientation of the parent object, but the second way does

    • @jwc6192
      @jwc6192 Год назад +2

      This comment just saved my life 😭 thank you

    • @vulgarius
      @vulgarius Год назад

      great comment, thanks

  • @PhoneUser89
    @PhoneUser89 Год назад

    Legend fr