THIRD PERSON MOVEMENT in 11 MINUTES - Unity Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

ความคิดเห็น • 521

  • @davegamedevelopment
    @davegamedevelopment  ปีที่แล้ว +20

    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: th-cam.com/video/9_Q9UxK7VF8/w-d-xo.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: th-cam.com/video/j2YplilHjCA/w-d-xo.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 ปีที่แล้ว +1

      @@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?

  • @theg.o.a.t100
    @theg.o.a.t100 ปีที่แล้ว +119

    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 ปีที่แล้ว +41

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

    • @SolarSoftMedia
      @SolarSoftMedia 7 หลายเดือนก่อน

      @@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 6 หลายเดือนก่อน

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

  • @supm8te751
    @supm8te751 2 ปีที่แล้ว +115

    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!

  • @TonyTovar
    @TonyTovar ปีที่แล้ว +47

    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 ปีที่แล้ว +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 7 หลายเดือนก่อน +1

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

  • @damamapi
    @damamapi ปีที่แล้ว +62

    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.

    • @togemetDrift
      @togemetDrift ปีที่แล้ว +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 ปีที่แล้ว +34

    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.

    • @blepomorph419
      @blepomorph419 ปีที่แล้ว +1

      tysm for figuring that out!

  • @r6scrubs126
    @r6scrubs126 ปีที่แล้ว +21

    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

  • @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 3 หลายเดือนก่อน

      @@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

  • @pourmydrank
    @pourmydrank 2 ปีที่แล้ว +18

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

  • @ProxyDoug
    @ProxyDoug ปีที่แล้ว +1

    This channel is a gold mine.

  • @PrimWater
    @PrimWater ปีที่แล้ว +5

    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

  • @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

  • @sheepboy932
    @sheepboy932 2 ปีที่แล้ว +22

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

  • @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

  • @hypercharge26
    @hypercharge26 2 ปีที่แล้ว +8

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

  • @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 👍🏼

  • @letsseethegame55
    @letsseethegame55 2 ปีที่แล้ว +8

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

  • @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 ปีที่แล้ว +1

      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

  • @GamerGaruud
    @GamerGaruud 6 หลายเดือนก่อน +1

    love the capsule effect! so hip and funny lol

    • @akshaykatakwar8154
      @akshaykatakwar8154 หลายเดือนก่อน

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

  • @vinylz3511
    @vinylz3511 10 หลายเดือนก่อน +2

    This stuff is real good! Well explained, easy to understand, and to the point! Though i was having some issues with the quality of the movement script. When you press left and then right the player rotates immedietly which is all fine for most games but for games where you wanna focus on a more realistic approach i find that using Linear interpolation much more optimal.
    // rotate the player
    float horizontalInput = Input.GetAxisRaw("Horizontal");
    float verticalInput = Input.GetAxisRaw("Vertical");
    Vector3 inputDir = orientation.forward * verticalInput + orientation.right * horizontalInput;
    if (inputDir != Vector3.zero)
    {
    Quaternion toRotation = Quaternion.LookRotation(inputDir, Vector3.up);
    playerSkin.rotation = Quaternion.Lerp(playerSkin.rotation, toRotation, Time.deltaTime * rotationSpeed);
    }

  • @cloudplayer269
    @cloudplayer269 8 หลายเดือนก่อน

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

  • @thatinusitatus
    @thatinusitatus ปีที่แล้ว +1

    this just flew WAY over my head.

  • @mugheesahmed588
    @mugheesahmed588 ปีที่แล้ว

    Bro you are much better than those with millions of subscriber out there i have learned a lot from 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

  • @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.

  • @pumpkinicing
    @pumpkinicing 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?

  • @lowkeydev
    @lowkeydev 2 ปีที่แล้ว +1

    You are seriously underrated, loving the easy to understand content

  • @Dahxelb
    @Dahxelb 9 หลายเดือนก่อน +2

    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.

  • @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!!!

  • @noone-dev
    @noone-dev ปีที่แล้ว +1

    This tutorial helped me, thanks.

  • @adarshsahu6724
    @adarshsahu6724 ปีที่แล้ว +1

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

  • @sweshi5240
    @sweshi5240 2 ปีที่แล้ว +8

    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

  • @muhammadawaiskhan4068
    @muhammadawaiskhan4068 ปีที่แล้ว

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

  • @bigyeetus2.5
    @bigyeetus2.5 2 ปีที่แล้ว +1

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

  • @videochantel6069
    @videochantel6069 ปีที่แล้ว +6

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

  • @Yurko_gt
    @Yurko_gt 2 ปีที่แล้ว +2

    Your tutorials are so helpful! Thanks. :)

  • @HarshaKarteek
    @HarshaKarteek 2 ปีที่แล้ว

    you deserve more views man nice content

  • @alod4412
    @alod4412 2 ปีที่แล้ว +1

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

  • @meerbalaj5235
    @meerbalaj5235 ปีที่แล้ว

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

  • @firstname9928
    @firstname9928 ปีที่แล้ว

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

  • @ozdoesstuff5678
    @ozdoesstuff5678 ปีที่แล้ว +6

    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 9 หลายเดือนก่อน +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.

  • @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

  • @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

  • @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.

  • @JSO18
    @JSO18 2 ปีที่แล้ว +12

    This is one of the best character controller tutorials on TH-cam. 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 ปีที่แล้ว

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

  • @gokulpranesh289
    @gokulpranesh289 2 หลายเดือนก่อน

    Thank you! this is a gem.

  • @lucasx.c.
    @lucasx.c. ปีที่แล้ว

    You're amazing dude, thanks a lot!

  • @mediamermaid333
    @mediamermaid333 ปีที่แล้ว +1

    Thank you!!

  • @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

  • @Diamond-yn4nu
    @Diamond-yn4nu 2 ปีที่แล้ว

    the tutorial worked just fine, thanks

  • @CarpathianWasteGroup
    @CarpathianWasteGroup ปีที่แล้ว

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

  • @karage1250
    @karage1250 2 ปีที่แล้ว +1

    That's so cool!!! Thanks 👍

  • @Plaguestris
    @Plaguestris 2 หลายเดือนก่อน +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

  • @lauramclane5790
    @lauramclane5790 2 ปีที่แล้ว

    your tutorials are absolutely amazing!! thank you so much

  • @blushell850
    @blushell850 2 ปีที่แล้ว +1

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

  • @floofie_3
    @floofie_3 ปีที่แล้ว

    thanks for this nice and easy tutorial

  • @22marshmellows54
    @22marshmellows54 2 ปีที่แล้ว +1

    this is awesome :)

  • @nawodyaishan
    @nawodyaishan 2 ปีที่แล้ว +1

    Hats off Man

  • @channel11-n
    @channel11-n ปีที่แล้ว

    these videos are the best

  • @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.

  • @bdd740
    @bdd740 2 ปีที่แล้ว +1

    This is awesome thanks.

  • @Diamond-yn4nu
    @Diamond-yn4nu 2 ปีที่แล้ว +1

    Please more tutorials about the skills of walking on ropes, and like so of the minute flats, movement near the walls and hanging like the Assassin's Creed method, A surprise attack on the enemy thank you.

  • @ps5games821
    @ps5games821 2 ปีที่แล้ว +1

    Great tutorials

  • @Cappuccinoitself
    @Cappuccinoitself หลายเดือนก่อน

    great video
    thanks

  • @bulshboicarti
    @bulshboicarti 2 ปีที่แล้ว +2

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

  • @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? :)

  • @hmmm3649
    @hmmm3649 3 หลายเดือนก่อน +2

    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

  • @Diamond-yn4nu
    @Diamond-yn4nu 2 ปีที่แล้ว +1

    Excellent thank you

  • @masterpeace47
    @masterpeace47 6 หลายเดือนก่อน +1

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

  • @Kurczaq
    @Kurczaq 7 หลายเดือนก่อน +2

    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?

  • @tocinoIQ
    @tocinoIQ ปีที่แล้ว

    Thank you so much now im starting making money

  • @juanluisg6980
    @juanluisg6980 7 หลายเดือนก่อน +1

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

  • @nicolasportu
    @nicolasportu 2 ปีที่แล้ว

    Outstanding!

  • @qaltx
    @qaltx 2 ปีที่แล้ว +1

    next video idea - double jump and katana like in karlson

  • @Camilo16l
    @Camilo16l ปีที่แล้ว

    Thank you very much :D

  • @takacao8373
    @takacao8373 ปีที่แล้ว +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!

  • @Cattailbruh
    @Cattailbruh 10 หลายเดือนก่อน +3

    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.

  • @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.

  • @gamerparttimee
    @gamerparttimee 2 ปีที่แล้ว

    more third person tutorial please xD

  • @trongnamtran1451
    @trongnamtran1451 2 ปีที่แล้ว

    thank you so much

  • @PhoneUser89
    @PhoneUser89 ปีที่แล้ว

    Legend fr

  • @mentally-insaneperson
    @mentally-insaneperson ปีที่แล้ว +2

    ngl sometimes this guys sounds like Brackeys, nice vid btw.

  • @DigiSpaceProductions
    @DigiSpaceProductions 2 ปีที่แล้ว +1

    nice totorial

  • @caki1125
    @caki1125 2 ปีที่แล้ว +4

    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.

  • @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!

  • @clumsypanda1039
    @clumsypanda1039 2 ปีที่แล้ว +2

    is this brackeys 2nd channel? xD
    man your voice really remind me of him

  • @rubin2033
    @rubin2033 2 ปีที่แล้ว +2

    Hi dave😘

  • @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

  • @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.

  • @FroggerDev
    @FroggerDev 2 ปีที่แล้ว +1

    Amazing. Love ur content. Could you show us how to make subway surfers stylish endless runner game tutorial.

    • @davegamedevelopment
      @davegamedevelopment  2 ปีที่แล้ว +2

      Thanks a lot! And I'll think about your suggestion! :D

  • @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

  • @Helper_Craft
    @Helper_Craft ปีที่แล้ว

    Bro your videos are @next_level but the only problem is you go fast and doesn't explain much in detail
    You should make a playlist explaining everything about game controller believe me you will get more support than you think
    😊

  • @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.

  • @BlazeX-c3m
    @BlazeX-c3m 6 หลายเดือนก่อน

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

  • @mrrwow
    @mrrwow 2 ปีที่แล้ว +1

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

  • @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

    • @samuelspeichert6920
      @samuelspeichert6920 ปีที่แล้ว +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 😭

  • @twist474
    @twist474 2 ปีที่แล้ว +2

    could you make vaulting and double jumping with your fps movement? i would love to see a video about it

    • @davegamedevelopment
      @davegamedevelopment  2 ปีที่แล้ว +1

      Vaulting is kind of included in the climbing tutorial, and I'll think about making a Double jumping video :D

  • @honkhonk5000
    @honkhonk5000 10 หลายเดือนก่อน

    I really like these tutorials but I wish he went a little more in depth as to 'why' he's doing certain things. This is probably just a personal gripe but I don't like doing things without understanding why they work and sometimes I can't figure this stuff out for myself as I am just a lay programmer (lol I only know the most rudimentary things and I barely know any complex maths)
    I digress though, these are great videos and the scripts look like they work beautifully.

  • @jinougaiv220
    @jinougaiv220 ปีที่แล้ว

    God Bless You, THANK YOU SO MUCH!! Is it too late to perhaps request a rope-walking mechanic? Please?

  • @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)