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.
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 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 ?
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 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!
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
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.
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?)
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?
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.
@@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?
@@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!
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
Yeah, I absolutely agree
I needed a simple first person camera and this helped, thank you
I had a problem where my camera rotated around the z axis for some reason, but your tutorial worked incredibly well. Thank you!
how did you fix it?
The only tutorial that worked for me!! Thank you so much ♥
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 :)
6:05 What is the point of creating a boolean for locked Cursor if it is not referenced in the script?
the description is a life saver
I have been stuck in making a camera and your video helped me !
i had an issue where i cant look left or right, not sure why any help would be appreciated
I also had the same issue. I don't know what to do
same
make sure you changed the transform's localEulerAngles and not the eulerAngles
Thanks to you and some other guy, I officially learned unity in 2 weeks!
which other guy? i really need help learning unity
@@pachurro2762 Coding in flow!
Very easy to understand. Thanks!
If i move it to the right or left it just goes back and I can only go up and down
What is the variable "bool locked Curser = true" for? (Minute 6:00)
to lock the cursor in the game, so when you look around your cursor moves across the screen and it turns invisible
It does nothing in this video
OMG u are the best. Also big thanks that u put code to description very helped
you are the freaking BEST man thanks soooooo much u explain this soooo well THANK YOU!!!!!!!!!!!!!!!!
Thank You! Hopefully this will help my grade improve a bit.
OMG!!!!! THE KEYBOARD VIBRATIONS!!!!!!
Perfect tutorial, its finally something that works!! However it wouldve been great for a movement script for W A S D
man you just saved my sanity thank you for this
Thanks for you amazing work, I would have never know what to do!
thanks bro, you helped a lot! you teach very well
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.
For some reason left and right are not working for me.
same
Bro thanks so much 10/10 loved the tutorial
i used the code and it worked fine except im unable to look up or down, not sure why
Thx mannn i will give you credit in my game
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
if u mean so they dont fall over its a setting in the rigidbody component
@@food_dev I ment that the player could not look behind them, but it’s ok because I stopped the project
very sucint, Thanks!
I cant get Player or mouse sensitivity to pop up on the script thing on the camera
this helped so much thankyou
Do you know how to rotate the player body ALSO on the up and down axis with the 90° limitation ?
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
@@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
@@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 ?
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.
I know you probably dont care anymore but you have to make the camera a child of the player gameobject for it to work :)
@@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!
saying input mouseY wasnt set up. how did you set up the inputs?
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
Helped a lot, thanks
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
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.
Thank you it's help soo much
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?)
Make sure you write localEulerAngles correct. Be wary of the order of the L and E in angle. Hope this helps.
great video but i had issues with x axis rotation
thank you so much for this.
How to make a moveable character with that
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?
Maybe don't make the t a capital t
@@tommytress77 How did i not see that.... thanks
@@krane438 I had the same issue
This is amazing! thankyou
Can you help me I ran into an issue where it said input mouse y not setup
nvm
Very handy, cheers!
Why u stop posting? ;-; you make so clear explanations
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
Very organized system 😁
Thank you!
Nice
thanks
Thank u!
I love you
why is this in 2022 and you have windows 7/XP
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.
@@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?
@@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!
Thanks!