First Person Camera in Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

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

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

    Youre probably the only guy I’ve watched that is concise with what to do. Other guys are just so confusing with how they explain

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

      Yeah, I absolutely agree

  • @0ut_0f_context55
    @0ut_0f_context55 ปีที่แล้ว +7

    I needed a simple first person camera and this helped, thank you

  • @nova-vb6yw
    @nova-vb6yw ปีที่แล้ว +6

    I had a problem where my camera rotated around the z axis for some reason, but your tutorial worked incredibly well. Thank you!

  • @Geadalu
    @Geadalu 5 หลายเดือนก่อน +1

    The only tutorial that worked for me!! Thank you so much ♥

  • @Skittlez
    @Skittlez ปีที่แล้ว +3

    Amazing video! I've been having issues with this and you explained it perfectly it less than 10minutes! props to you you got a new subscriber :)

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

    6:05 What is the point of creating a boolean for locked Cursor if it is not referenced in the script?

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

    the description is a life saver

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

    I have been stuck in making a camera and your video helped me !

  • @Karsitz
    @Karsitz ปีที่แล้ว +9

    i had an issue where i cant look left or right, not sure why any help would be appreciated

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

      I also had the same issue. I don't know what to do

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

      same

    • @AirLiftingMonkeys
      @AirLiftingMonkeys 3 หลายเดือนก่อน +1

      make sure you changed the transform's localEulerAngles and not the eulerAngles

  • @srimandshan6628
    @srimandshan6628 ปีที่แล้ว +3

    Thanks to you and some other guy, I officially learned unity in 2 weeks!

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

      which other guy? i really need help learning unity

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

      @@pachurro2762 Coding in flow!

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

    Very easy to understand. Thanks!

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

    If i move it to the right or left it just goes back and I can only go up and down

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

    What is the variable "bool locked Curser = true" for? (Minute 6:00)

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

      to lock the cursor in the game, so when you look around your cursor moves across the screen and it turns invisible

    • @j.r.bobdobbs7763
      @j.r.bobdobbs7763 10 หลายเดือนก่อน +1

      It does nothing in this video

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

    OMG u are the best. Also big thanks that u put code to description very helped

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

    you are the freaking BEST man thanks soooooo much u explain this soooo well THANK YOU!!!!!!!!!!!!!!!!

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

    Thank You! Hopefully this will help my grade improve a bit.

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

    OMG!!!!! THE KEYBOARD VIBRATIONS!!!!!!

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

    Perfect tutorial, its finally something that works!! However it wouldve been great for a movement script for W A S D

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

    man you just saved my sanity thank you for this

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

    Thanks for you amazing work, I would have never know what to do!

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

    thanks bro, you helped a lot! you teach very well

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

    Left and Right do not work when I do it independently for the camera (I have the main camera not childed to the player cuz that is better for future things). But it does when I do.

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

    For some reason left and right are not working for me.

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

    Bro thanks so much 10/10 loved the tutorial

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

    i used the code and it worked fine except im unable to look up or down, not sure why

  • @no.7992
    @no.7992 ปีที่แล้ว +1

    Thx mannn i will give you credit in my game

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

    How could I make it so that I can clamp the players right and left rotation? Making a game and rly need help with issue. Pls hrlp

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

      if u mean so they dont fall over its a setting in the rigidbody component

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

      @@food_dev I ment that the player could not look behind them, but it’s ok because I stopped the project

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

    very sucint, Thanks!

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

    I cant get Player or mouse sensitivity to pop up on the script thing on the camera

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

    this helped so much thankyou

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

    Do you know how to rotate the player body ALSO on the up and down axis with the 90° limitation ?

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

      I'm going to be more specific with my question : I have made 2 arms for my character model, and I want these arms to move up and down with my camera, just like they do left and right currently. The problem is that it would also rotate the capsule collider of the character, so I don't know exactly how it could be done

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

      @@Hulgore i was gonna tell you a solution but then i saw "1 year ago" on your comment, so i hope you figured it out

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

      @@SwivetZip Yes, what I did is I created a game object that I named "FirstPersonPlayer", and I attached to it the capsule collider. Then as a child of this object I put the camera with its control script, and as a child of the camera I put the arms model. This way the camera movements with the mouse do not impact the capsule collider at all, only the arms.
      Out of curiosity what was your solution ?

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

    it gives me an error at player.Rotate because player isn't there in that context or smth. Changing it to transform.Rotate removed the error, but now I can't rotate horizontally, I can only rotate vertically.

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

      I know you probably dont care anymore but you have to make the camera a child of the player gameobject for it to work :)

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

      @@Deekayy3 I surely do not not care. I am very grateful for every help! I just haven't opened that project in a while, but I will keep it in mind! Thanks a lot!

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

    saying input mouseY wasnt set up. how did you set up the inputs?

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

    I'm not sure why but anytime I run my game the camera doesn't stay on the player. it just shows a random area of the scene

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

    Helped a lot, thanks

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

    i cant figure out what im doing wrong, i keep getting an error that says "The type or namespace name 'MonoBehavior' could not be found (are you missing a using directive or an assembly reference?)" when i try to put in the vertical camera script

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

      Might be because Unity uses the UK English spelling 'Behaviour' instead of the American 'Behavior', unless that's just how you typed it for the comment in which case I'm not sure what the problem is.

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

    Thank you it's help soo much

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

    Assets\FirstPersonCam.cs(24,19): error CS1061: 'Transform' does not contain a definition for 'localEulerAngels' and no accessible extension method 'localEulerAngels' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?)

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

      Make sure you write localEulerAngles correct. Be wary of the order of the L and E in angle. Hope this helps.

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

    great video but i had issues with x axis rotation

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

    thank you so much for this.

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

    How to make a moveable character with that

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

    So i got an error An object reference is required for the non-static field, method, or property 'Transform.localEulerAngles'
    And i did write it correctly and i did put player there in Transform....what should i do?

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

      Maybe don't make the t a capital t

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

      @@tommytress77 How did i not see that.... thanks

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

      @@krane438 I had the same issue

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

    This is amazing! thankyou

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

    Can you help me I ran into an issue where it said input mouse y not setup

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

    Very handy, cheers!

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

    Why u stop posting? ;-; you make so clear explanations

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

      I had fun making videos but I am very busy.. working 12hours a day... maybe some day if work gets better. Tnx for the support

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

    Very organized system 😁

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

    Thank you!

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

    Nice

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

    thanks

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

    Thank u!

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

    I love you

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

    why is this in 2022 and you have windows 7/XP

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

      It is windows 7 :D. Why fix that what ain't broken. Jokes aside my job required some old ass programs that simply wont work on newer windows. Well now I got windows 10 so yeah xD.

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

      @@UnityAce 1. you are like my friend Priberry, who replies so fast its scary.
      2. thank you.
      3, I cannot get it to move to the sides. What kind of error is that?

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

      @@PerplexingRat Ah your welcome, however I don't think I can help you out. I stopped playing around with Unity almost 2 years ago and have no clue what was what.. Maybe try redo the whole thing.. that fixed 90% of the troubles I was heaving when working with it. Sorry that I can't help more! Have a lovely day! Cheers!

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

    Thanks!