I'm a big fan of the full system tutorial instead of just "here's part go figure out the rest on your own". Videos like this take a ton of time. Much appreciated.
@samyam3 жыл бұрын
Thanks!! Yeah it took a while 😅
@Lpd_n3 жыл бұрын
Exactly
@juaecheverria02 жыл бұрын
You mean like codemonkey, trynna sell his course? Lol
@samyam3 жыл бұрын
Hey y’all! Here’s the next video: Adding Animations | Blend Trees, Layers, & Animation Rigging - 3rd Person Shooter - Unity Tutorial kzbin.info/www/bejne/a2mWg2yCnLeNhqM If blending between the different cinemachine camera's has a large position offset, try the following: *Cinemachine Virtual Camera > Transition > Inherit Position // will inherit from the previous camera’s position
@spartadiunruly62123 жыл бұрын
hi I have just realized that when you change Unity input to Scripts it gives you Errors...Noted... THANKS
@Hmash0110 ай бұрын
THANK YOU I WAS HAVING THIS PROBLEM ubuueijabfuawgbruyfdjawhb8ir
@acrostiic5623 Жыл бұрын
Even a year later, this tutorial is the best I've seen. I watched 3 different hour long videos just to find that there was something about the end result that I didn't like. Not only is this easier, but more customizable. All the other videos I watched required so much code and not any way to change the way you move or the way the camera works. I figured out how to adjust the camera to an RPG game by changing the value range of the horizontal axis to 360 degrees rather than 180, allowing you to rotate fully around, enabling wrap, and then locking the cursor in the middle of the screen using the cursor lock state command. I can't express how helpful this tutorial was as a beginner to Unity and C#.
@acrostiic5623 Жыл бұрын
Like seriously, I was about to give up any hopes of making a game but this was so easy to implement that it re-motivated me and now its 8am and I haven't slept xD
@publicalias81723 жыл бұрын
The fact you timestamped an hour-long video is enough to subscribe.. thank you so much that's rare in unity tutorials !!
@samyam3 жыл бұрын
Thank you :))
@LoganIsLive3 жыл бұрын
I just stumbled upon your tutorial after trying to slog through a bunch of other 3rd person shooter tutorials. As a complete beginner, your video was absolutely perfect. Thank you so much!
@samyam3 жыл бұрын
Awesome, glad you liked it!
@NotNazuh3 жыл бұрын
Same
@GoblinArmyInYourWalls3 жыл бұрын
You fill the hole Brackey's left in my heart
@csongorplays73902 жыл бұрын
Returning here 2 years after I first saw the video, I realised just now how much I have learnt. I am so grateful for your channel, everytNice tutorialng
@rickeydigital3 жыл бұрын
Efficient,detailed, useful, timely, straightforward and very well done.
@samyam3 жыл бұрын
Thank you!
@booo-live76242 жыл бұрын
It’s totally worth learning new skills cause then you get excited and confident to create
@rickyreaves57943 жыл бұрын
Sam I love it, I can't say how much of a help this has been. decided against using too many asset packages so this is wonderful! I sure do hope you keep going
@samyam3 жыл бұрын
Thank you!! I do plan to! :D
@CharkGames Жыл бұрын
Just in case, as I have seen others mention, if you get the targetRotation doesn't exist issue, it's because her program autocorrects. So the line before was Quaternion rotation, but when she writes in the next line targetRotation her program autocorrects the previous line to also be Quaternion targetRotation instead of rotation. Hope this helps!
@syncrowave9815 Жыл бұрын
You're a legend
@irukahahah3 жыл бұрын
Amazing video! super complete and perfectly explained, just a few cuts that leave out only a few small changes in the strings but with a little attention everything works beautifully!
@samyam3 жыл бұрын
Thank you :)
@hehexd47872 жыл бұрын
this is the movement that ive been looking for, the one with backward walking
@juliaalder20073 жыл бұрын
I am so glad that you are here. :)
@samyam3 жыл бұрын
Thanks!
@MongiChan Жыл бұрын
Thank you, the best TPS controller tutorial!!!
@samyam Жыл бұрын
Thank you!
@B1gV332 жыл бұрын
Thank you so much for this video. Started my game dev journey about 10 days ago. This has inspired and motivated me so much! It's been great!
@samyam2 жыл бұрын
Congrats on starting 👏✨
@Spark3r2 жыл бұрын
I need help, I was at 25:51 when you typed targetRotation however for me it said that, that doesnt exist in the current context, can you please help
@halc42612 жыл бұрын
If someone has a newer version of Unity and have problem with spawning Decals on the walls when shooting bullet on collision( 53:42 ), change the Floor (plane), in rigidbody check the Kinematic... and uncheck in other collision objects like wall etc. Also freeze the all rotations at the plane and wall.
@moliprod2 жыл бұрын
when i want to shoot, it says that Destroying assets is not permitted to avoid data loss, idk what to do
@user-bq8lf2th6u2 жыл бұрын
I'm so confident, yeah, I'm unstoppable today
@martingrof16852 ай бұрын
I love your presentation style! Very nice to follow.
@dogukanakgun622 Жыл бұрын
This is a treasure! My friend and i have been looking for this for ages. Thank you, madam!
@nuave Жыл бұрын
Thanks so much, every other cinemachine tutorial uses free-look and you're exactly right it's just not snappy like this one is.
@samyam Жыл бұрын
I can never get the free look camera to feel how I want 😔
@lohkiiinteractive36752 жыл бұрын
I can't seem to get my player to move I'm at the 12:16 min mark and when i setup like in the video my player doesn't move. What am I doing wrong??
@jdonaldsontcs3 жыл бұрын
Spectacular scope for this video. Very well done! Keep up the great work!
@samyam3 жыл бұрын
Thank you!
@JasonSmith-pn6ch3 жыл бұрын
@7:00 Thank You for sharing that powerful bit of knowledge.
@izumi_desu11 ай бұрын
I LOVE this tutorial. Although this system is really specified for TPS games, it can be used for more games such as Mecha games (the genre I specialize in)! The scripts and components used are so modifiable to your liking. AMAZING tutorial!
@Laranthir3 жыл бұрын
All the detailed explanations supported with live examples make it fun to learn. Nice funny commentary with reactions as well. Cheers!
@samyam3 жыл бұрын
Thanks!! The next part (Adding Animations) is also up if you are interested: kzbin.info/www/bejne/a2mWg2yCnLeNhqM
@zzz-hk9zq2 жыл бұрын
23:39 if anyone is having errors , try deleting line cameraTransform = Camera.main.transform; and instead of this use cameraTransform = GameObject.Find("*your camera name*").GetComponent();
@Ultimateroku3 ай бұрын
It's not working for me still
@LM-cc7qz3 жыл бұрын
I think this video is incredible compared to other tutorials because it explains how to change the camera settings to your liking and why we are adding this line of code, the reasoning behind it. Also not to be nit picky but euler is pronounced u-ler not oiler.
@samyam3 жыл бұрын
Thanks! Glad you liked it! I give up with that word, every time I try I say it wrong 😭 Next time 😤
@LM-cc7qz3 жыл бұрын
@@samyam I know, I was just trying to find a way to let you know without being rude!
@samyam3 жыл бұрын
It’s okay! I appreciate it!! 😄
@badscotsman3 жыл бұрын
@@samyam your pronunciation is actually spot on... as oy•ler or "oiler" (definitely American pronunciation... but which language actually pronounces it as "u-ler"...??). Sources: en.wikipedia.org/wiki/Leonhard_Euler (the word does actually come from the famous mathematician's name) www.google.com/search?q=euler+pronunciation kzbin.info/www/bejne/h2rQqppsftRgf7M ... and my math professor from 25 years ago. ^^ Keep up the great work with your videos!
@samyam3 жыл бұрын
Ah yes you are right, it’s a tricky word 😳
@yojan69 Жыл бұрын
tysm, ive always struggled a hella lot with camera movement cus i never got cinemachine to work right until now imma start using my own character controller and i couldnt get cinemachine to work fine, now it does, ty xd
@kevinbasel84013 жыл бұрын
I didn't expect to find all these informations!! Really a great tutorial that covers every topic at 360°. Finally I've found a good youtuber after Brackley left. Immediatly subbed, thanks a lot!
@samyam3 жыл бұрын
Thank you!
@drevcronsole3 жыл бұрын
Its brackeys san
@kevinbasel84013 жыл бұрын
@@drevcronsole bracleys made a same video but she covered even more topics! I would say she is his mom xD
@samyam3 жыл бұрын
that would be strange 😳
@GameCragYT2 жыл бұрын
Used spheres to make eyes on my bean. 10/10 made testing a million times better xD
@bossch87153 жыл бұрын
Just to let you know, I struggled a lot to find a way to rebind the keys with the generated script. But in the end I found a way so it is possible and not to difficult. Nice work btw!
@samyam3 жыл бұрын
Nice and thanks! So did you have the rebind script access the player controls instance created for the player from the generated script?
@justusforan2 жыл бұрын
Of course Sam has a video tutorial for exactly what I'm struggling through. This is seriously amazing!
@samyam2 жыл бұрын
Thank you!
@justusforan2 жыл бұрын
@@samyam You actually respond! I'd like to use this script in a controller series, are you okay with it, if I do that?
@samyam2 жыл бұрын
@@justusforan sure feel free just don't take my patreon code and redistribute it
@ryeon65932 жыл бұрын
Finally, someone who can pronounce Euler right.
@JdR2V Жыл бұрын
Omg thank you so much! I had a little problem for a bit but it was on my end (I was spawning the camera instead of the bullet prefab :O ). This has to be the most clear video on how to make a Third Person Shooter in this entire platform!
@Resident_lurker2 жыл бұрын
Thank you so much for the tutorial, it really helped with the new input system, and learning alternative methods to code these systems.
@akshhhatislive3 жыл бұрын
this was the best video which i watched in youtube thankyou so much
@samyam3 жыл бұрын
Thank you!! :D
@darrenchambers66353 жыл бұрын
I have just started using this tutorial and i am impressed, everything so far has been explained clearly so anyone can use it. very good video. keep them coming.
@samyam3 жыл бұрын
Thank you so much!
@ishayyujha3 жыл бұрын
@@samyam I have a question? When I added ur player movement script it said “the type or namespace name “playerInput” could not be found. How do I fix the issue?
@samyam3 жыл бұрын
PlayerInput is the type, playerInput is the name of the variable of type PlayerInput
@ishayyujha3 жыл бұрын
@@samyam so what do I do to fix it, sorry I’m new to this stuff
@samyam3 жыл бұрын
Try capitalizing the P, PlayerInput
@vcauxilium2647 ай бұрын
I am getting the error: 'PlayerInput does not containa definition for 'Actions', anyone know a solution to this?
@Aaron-vn5fd Жыл бұрын
You're videos have helped me so much I want to credit you for helping me build my game
@samyam Жыл бұрын
Wow thanks I appreciate it! Glad the videos have helped you 😁
@FacturedGaming2 жыл бұрын
Did anyone have a problem where the aiming camera for whatever reason did not follow the character from behind? I had encountered times where if my character would rotate around, the active camera will be correct, but the aiming camera would still be infront of the player and thus ADs would be incorrect
@blzahz76333 жыл бұрын
I'm about 30 minutes in, and I gotta say that this is a very captivating tutorial. There are some things that get jumped over and needed some piecing together, for example at (17:15) to (18:57) "Look At" changes from Player to 3rdPerson, the same happens with Aim Camera at (25:59) - (26:10) 3rdPerson changes to AimCinemachine. (Though having these set to looking at themselves caused mad shaking, so I returned both to Player, let's see how that pans out - maybe this is why they got skipped over?) Then there's PlayerController.cs: you introduce Aim Action at the beginning of the video when creating PlayerControls (6:12), but don't really type it in the cs script at (11:09), yet refer to it at (27:35). This caused some confusion when Unity started screaming at me.
@samyam3 жыл бұрын
Thanks for the notes! I probably messed up during the video and switched the objects, and sometimes when editing I may miss a section by accident because I have to remove a lot of mistakes. I’ve been improving with more recent videos! :)
@blzahz76333 жыл бұрын
@@samyam Yea it happens, and it's okay. I think it's better to let the other person know when stuff like that happens - after all creating a tutorial is about sharing knowledge so we can all be better, something along the lines of: _"If we do our best, individually, then collectively we'll be awesome."_ Tutorials, comments - communication in general is a way to help each other to reach individual excellence. So keep it up, as you can see from the other comments, you are doing a good job.
@samyam3 жыл бұрын
@@blzahz7633 Thanks so much appreciate the nice comment :)
@kankles6569 Жыл бұрын
Wow. What a great video! I'm trying to make my 3rd person shooter controller using state machine. This gave me a ton of info I needed. Thanks!
@STARS_Redfield2 жыл бұрын
I have a problem with the decal and rigidbody, I cannot make it working with a mesh collider With Box collider + rigid body, it works, but my level is more complex and I cannot use box collider
@STARS_Redfield2 жыл бұрын
Found a solution that works 25% of time: Adding the rigidbody to the sphere bullet, wich also alloy me to put gravitty on it. Only problem, someytime the collision are not working properly, the decal does not spawn and the bullet remains in place until it despawn
@halc42612 жыл бұрын
This is the BEST video tutorial I ever find on youtube. I really love this video tutorials what have like 1 hour (im not fan of the speedrunning coding in like 10 minutes). Perfectly described what everything means, doing, what functionality it has... Im so proud of you for that Im being teached by a girl
@travisgarrisonihdlive4 ай бұрын
I found when the aim vcam becomes live it will not have the same rotation values as the current 3rd person vcam. To fix this select your aim vcam under Transitions check the box that says Inherit Position and now when the aim camera goes live it will have the same rotation values as the 3rd person vcam. You will also want to do this to the 3rd person vcam so when it becomes the live camera it will have the values from the current aim vcam.
@y_nirny3 жыл бұрын
Fantastic intro to the new input system. Such a good tutorial that can easily be modified for your own games. I'm going to make two character controllers and switch between them so a nice long tutorial with plenty of info is perfect for me!
@buddyroach3 жыл бұрын
how do i make a third-person camera using cinemachine but for a rigid body player instead of a character controller?
@samyam3 жыл бұрын
The implementation for cinemachine should be the same, cinemachine just needs a Follow and/or Look At gameobject, how you handle the movement is up to you.
@dff90802 жыл бұрын
thank you 1.000.000 times is just the tutorial I need 😃
@francescodegallo71769 ай бұрын
great video! quick question: which key are you using to shoot the bullet? followed everything perfectly and no game errors, just missing this tiny info... thanks!
@MiniaturesMyth2 жыл бұрын
Amazing tutorial, really good content, thanks so much. I'm having an issue though... My Aim Camera is not rotating with the mouse input while its not top priority. This causes miss alignment and crazy rotations. Any idea what might i be doing wrong?
@gokamekeck49992 жыл бұрын
I have the same problem here, did you find out how to fix it?
@yairyamagucci90592 жыл бұрын
Hi! great tutorial everything worked up until 53:03 I tweaked the Unity Third Person Controller Asset code while following this, the bullets do not spawn when i run i get a error in the console that says NullReferenceException: Object reference not set to an instance of an object StarterAssets.ThirdPersonController.OnEnable () i think it's because the GameObject in their code references the Main Camera is there any way around this?
@BlueAndy_ Жыл бұрын
Thanks a lot, i had problems with the character roation orientated to the camera. But thanks to you i could implement your really well working simple method. Thanks a lot.
@wannurulnajihah Жыл бұрын
Hello, all your videos are really helping thank you very much 😭 I have two questions: 1. I wonder if you can control the player using the gamepad (left stick for movement and right stick for the camera) 2. How to switch to another controller if the game can play using both keyboard and mouse, and gamepad
@baconee70472 жыл бұрын
Thank you So much for ur ti and support
@colbydanesaddoris Жыл бұрын
Thanks for sharing... FYI no need to normalize the direction vector on a transform.. ex: cameraTransform.forward.normalized. might as well save the sqrt.. hmm.. that kind of sounds like a charity
@riteshkhokhani2 жыл бұрын
best third person shooter unity tutorial, helps a lot. thanks you so much.
@samyam2 жыл бұрын
Thank you!
@rajeevprakash58949 ай бұрын
Omg i just getting fan of you,, you are amazing and i really comment and like very rarely😇😇😇
@GameCragYT2 жыл бұрын
FIX for decals not despawning, replace your "OnCollisionEnter" with this: private void OnCollisionEnter(Collision other) { ContactPoint contact = other.GetContact(0); GameObject decal = Instantiate(bulletDecal, contact.point + contact.normal * .0001f, Quaternion.LookRotation(contact.normal)); Destroy(gameObject); Destroy(decal, 5); }
@snowdrop8903 жыл бұрын
Heya, I appreciate your help, Thank you very much , i will keep supporting you in a long run ^^
@samyam3 жыл бұрын
Thank you!!
@dachikirvalidze83842 жыл бұрын
for anyone that is not using a sphere as a bullet it would be wise to change the rotation of the bullet while instantiating it. i did it like this: GameObject bullet = Instantiate(BulletPrefab, GunBarrelTransform.position, Quaternion.LookRotation(cameraTransform.forward), bulletParent); hope it helps.
@haisesasaki68612 жыл бұрын
Thank you for making this video. It helped me understand the new unity input system aswell unity 3d basics! I was a Unity 2D Developer but the switch to 3D was very flawless because of this video! I appreciate the work you put in this tutorial :)
@samyam2 жыл бұрын
Happy to have helped 🤘😁
@Alperic272 жыл бұрын
faaaaantastically simple intro to input system…. great job, just for that alone people should watch this vid……
@samyam2 жыл бұрын
Thank you! :)
@tomdriver6733 Жыл бұрын
Excellent tutorial. This is exactly what I was looking for.
@samyam Жыл бұрын
Thanks!
@BrijeshKumbhare9 ай бұрын
Absolutely helpful tutorial. Thanks for this.
@K-Twenty-Nine2 жыл бұрын
I really enjoy your channel and you are a good teacher. I might have missed sotNice tutorialng and I don't get friends with the setuper. I worked
@maksukomski1282 жыл бұрын
Hi, great tutorial, but i'm stuck at 30:12. When I add VCam Switch Component, It doesnt show me option to add Player Input. What should i do?
@samyam2 жыл бұрын
Did you make it a SerializeField & check if the script has any errors (Windows>General>Console)
@Joe-oq2zn2 жыл бұрын
same issue. have you got this resolved
@TylerGreen3 жыл бұрын
Nice tutorial! I’ve yet to experiment with the input system but this was well explained
@samyam3 жыл бұрын
Thanks!
@daveski0842 жыл бұрын
This is a fantastic tutorial, keep up the amazing work!
@samyam2 жыл бұрын
Thank you! 😄
@jean-michel.houbre3 жыл бұрын
Hello, 14:40, if you double-click in the console on the error, you can remove the missing script and make a prefab with the "CM 3rd Person Aim".
@samyam3 жыл бұрын
Hmm, I had tried that when preparing the video and it just wouldn't work for me. That's good if it works for others though!
@MadeThisStuff3 жыл бұрын
Thanks for that, worked for me! No idea what the missing script was, hopefully it won't come back to bite me
@cinnamondum Жыл бұрын
around 23:45 when she makes the player face towards the direction of the camera it says "The name targetRotation does no exist in current context I am a beginner with unity so replying would help out a lot :) I tried everything I can think of lol
@JesseOghre-z8u Жыл бұрын
me too
@syncrowave9815 Жыл бұрын
same
@qasimtariq48022 жыл бұрын
Can you make a follow-up about weapon switching using this tutorial.
@scottmedhaug4107 Жыл бұрын
thanks you awesome job, hope to find more of your teachings
@GustavoMondini2 жыл бұрын
Hey sam, Im having a trouble. My input for perfomed and cancelled at aim action is going Null Ref. i thing it has to do with the callback. Do you have any idea ? maybe swap the underscore...
@plufio75262 жыл бұрын
Thank you, I really needed to hear tNice tutorials!!
@Angelg_-no3ry2 жыл бұрын
Thank you, it helped but i had a little bit of problems. Good Tutorial
@ukameazura63373 жыл бұрын
That was a great tutorial. But I'm having trouble looking for the sample scene from cinemachine.
@samyam3 жыл бұрын
In the package manager on the right side, there should be a samples drop down that you can click and from there download the ones you want
@fredqq2003 Жыл бұрын
Sorry May I ask, Why we use Action-->Vector2 at first beginning instead of Vecto3?
@fredqq2003 Жыл бұрын
@@robbyz512 OK thanks~~
@alzayn36182 жыл бұрын
The explanation are so good🥰💕 its easy to understand ✨❤️
@UnSesame2 жыл бұрын
Thank you so much, with your videos I can now realise my project. I search a lot to get these 2 lines of code à 25:15 to rotate my player with the camera 🙂
@Randizzle.2123 жыл бұрын
3:05 AmongUs?!?! No but seriously your a life saver
@samyam3 жыл бұрын
👀🤫
@DaRealViso Жыл бұрын
Everything is great. but one issue I've found is when I look down I lose speed. Any ideas as to why this is happening?
@keithpatience7425 күн бұрын
Pressing W makes my player jump slightly and not move forward. Any idea what the issue could be?
@MENDIETA16033 ай бұрын
I love you, this tutorial helped me a lot
@Cazyman242 жыл бұрын
my camera is teleporting 180 degrees when i turn look left and right. do you have any reason why?
@Cazyman242 жыл бұрын
when it reaches the starting position of the camera it teleports 180 degrees
@Cazyman242 жыл бұрын
also the aim camera is shaking (noise is turned off)
@luiscossio296 Жыл бұрын
I'm having trouble binding gamepad right stick to the Look action. Apparently, the Input System does not multiply the stick movement by Time.deltaTime, resulting in extremely sluggish camera movement. I found a "solution" in the Unity Forums where they add a Delta Time processor to the binding, but all it does for me is stop movement alltogether. Any ideas?
@TheWattashi2 жыл бұрын
@samyam for some reason aimed cinemachine doesnt work while pressed Rbutton
@kraythe Жыл бұрын
Excellent tutorial. One question. I have noticed some tutorials making a character a rigidbody but the samples dont. Is there any benefit to doing so?
@BadApple-um7vb2 ай бұрын
Can i following this tutorial but for mobile movement?
@F3L03 жыл бұрын
Greatest channel, your videos are gifts from the gods
@samyam3 жыл бұрын
Thank you 😄
@jacobtrucomrade55552 жыл бұрын
wow super helpful and it worked just like in the video! clear instructions, so far the best tutorial I have ever seen!!! :D
@samyam2 жыл бұрын
Yay thank you!!
@DavidGomez-tr9ph2 жыл бұрын
Great tutorial, I was struggling with cinemachine and this helped lot, ty so much!
@Jesse_Rioux2 жыл бұрын
I'm having issues with the camera, it's not rotating around the capsule and only rotating in it's own position
@ganeshwer63372 жыл бұрын
26:51 Anyone could help me out with why she didn't give lookat(aimCamera) as "Player Transform" ??
@zllegol4 ай бұрын
Great!!! Thanks you so much for a very good material!
@Warrior93002 жыл бұрын
Hi! How can i do the player keep aiming when i press (and release) a key and then when i press (and release) the same key again no longer aim any more?
@cemilsaintson3688 Жыл бұрын
Thank you! You are amazing. I looking for this tutorial.
@dvntlex5942 жыл бұрын
I have a question, if I want to press down and hold to shoot a gun multiple time instead of player having to press the button multiple times. What would I change?
@dabbster2574 Жыл бұрын
I keep getting errors on the line/ private PlayerInput playerInput; / in the player controller not really sure how to fix it