Hey Dani, thanks for the videos. Super informative and helpful. I really like it when you emphasize coding best practices such as proper naming conventions for fields, using properties, and setting elements to private vs. public. Two things I hope you'll do videos on: 1. Unity Test Framework: how to use it, when to use it, best practices, etc. 2. Organizing scripts: How many is too many, when should I break scripts up into multiple, how to keep them clean, etc. Looking forward to what you have next!
@LobsterInSuit2 жыл бұрын
Your explanations are spot on! Is like to follow a real course from a professor! Explaining, other than the functionality of a subject, its consequences and behaviours inside the program (like the z-axis POV of the turret in 2d using the LookAt command) is the core of understanding better and faster! Thank you!
@anfrollex Жыл бұрын
You are amazing! Explanations are as clear as possible.
@stefans37802 жыл бұрын
hey Thanks! you're seriously so good at explaining things, I tried a lot of tutorial series on Unity and yours is just so easy and pleasant to follow.
@NumeroCinko Жыл бұрын
Now that's a great explanation. Thank you good Sir 💙
@theneighborhood84322 жыл бұрын
MY GOOOOD, ur so good at explaining
@etistyle968 ай бұрын
dude you just saved my day. Thx !
@troyna772 жыл бұрын
thank you for pointing out the whole "gameObject" prefixed before the .transform. To me it does make more sense to put it in code. Is it redundant ? yes. Does it make it clearer to understand ? Yes. IF (it works && doesnt affect performance) {leave it in the code};
@amundgrimstad71652 жыл бұрын
Thank you for this tutorial! Just what I need for my current project
@jackbotman Жыл бұрын
Correct me if I'm wrong, you could hack it perhaps by adding an empty and rotating it into the position the LookAt function would put it (The position seen at 12:07), then making that the parent of your turret, the turret will rotate with the parent with out getting flipped 🤔
@mansethan33942 жыл бұрын
hi Dani, thank you very much for making this series tutorial. in this video , can you explain that why minus 2 object position (offset) then result is the direction that turret face to ? would i miss something in offset tutorial video you had made ?
@larenzgarrett49362 жыл бұрын
Instead of an offset, couldn't you just lock the z rotation or continuously set the transform to rotation to be level with the 2d plain
@mimsadsafarpour65922 жыл бұрын
Hi, why you did not grab the rigidbody2d physics in this project? thank for the videos by the way
@Dani_Krossing2 жыл бұрын
Because these methods aren’t physics based 🙂 Whenever movement is set using ‘transform’ and not ‘RigidBody’, we don’t use physics to move, but instead just change the transform directly. We don’t even need a rigidbody on our gameobjects for this to work 😉
@mimsadsafarpour65922 жыл бұрын
@@Dani_Krossing Thanks a lot!
@ushas3349 Жыл бұрын
Hi Dani, I am a beginner to unity but not new to programming. But seriously your explanations are really very good. I wish I could practice all the exercises along with you. But unfortunately, I have some problem. The unity and visual studio takes hell of a time. For every mouse click, or move from unity to c# code, it simply pops up hold on message. It is dead slow. I don't know how to solve this!!! Thank you for the wonderful series.
@Dani_Krossing Жыл бұрын
An alternative is to use VSCode, and install the Unity intellisense plugin 🙂 it is much more lightweight, and does all the same for what you need to work with Unity. I also use it on devices that could use the extra speed.
@ushas3349 Жыл бұрын
@@Dani_Krossing Thank you Dani for the instant response. I will try.
@muhammadfahadchaudhry49682 жыл бұрын
Oh Wow! very good explanation dani :) Why don't you make more good tutorials bro?🙂
@seroriin11604 ай бұрын
After I deleted game objects from previous lessons(beside lighting and main camera), whatever i add next into the scene doesn't show up in gameview (both main camera and other added camera)
@kabhikachambala33922 жыл бұрын
Amazing
@troyna772 жыл бұрын
how would you "slow" your rotation ? how would you "snap" your rotation in 45 degree increments ?
@Dani_Krossing2 жыл бұрын
To slow the rotation, just decrease the "rotateSpeed" field value. And to instantly rotate 90 degrees, just get your current transform rotation, then add or subtract 90 to it, and then change the players transform to that new number. 🙂
@troyna772 жыл бұрын
@@Dani_Krossing my bad about the rotateSpeed. i was rewatching your video and came across the "_rotateSpeed" variable. Thank you !!! You totally solidified ALL my questions about Translate,Rotate and LookAt. BTW, have you ever heard of an extension for Visual Studio called GitHub CoPilot ? While not 100% its pretty much a coding game Changer for me. You might want to do a review on it. Im not affilated with "CoPilot". I just started using it last night and love it. thanks again.👍
@Hiturion Жыл бұрын
When you declare this "Vector2 lastRotation", what value is it set to by default? new Vector2(0,0)? I am thinking about the first iteration of "Update": when doing the "direction != lastRotation" test, the "lastRotation" Vector2 has not been set to any value. Is it necessary to add to the code: "void Start() { lastRotation=new Vector2(0,0);}" ?
@ЕвгенийМартыньш2 жыл бұрын
Greate
@2muchofyou2 жыл бұрын
need to understand the Rigidbody.MoveRotation method as my ball keeps clipping through the plain
@Dani_Krossing2 жыл бұрын
Make sure you set collision detection to continuous on your rigidbody component.
@fke.official26 күн бұрын
idk why but my think is not only rotating to face the player it is also following it. help 😢
@jordanmusleh63052 жыл бұрын
Hey brother question I am having a problem I was working on a game project and today I got in the program and I got an error and it said you have a 3rd party working on this project I was like …uhh…???? I don’t feel bad about the project but I feel like I was hacked and now I don’t feel safe on unity 3d hub…!!
@Dani_Krossing2 жыл бұрын
It’s just because unity crashed, but for some reason not all of unity’s software closed down. A PC restart fixes that issue 🙂 There is no need to very about Unity being a malicious software at all.
@jordanmusleh63052 жыл бұрын
@@Dani_Krossing so do you think it safe to continue working ?? Thank you for the information … one question 🙋♂️ do you trust unity 3d..?? I love you videos please keep posting more..!!
@Dani_Krossing2 жыл бұрын
It’s 100% safe.
@jordanmusleh63052 жыл бұрын
@@Dani_Krossing ok 👍 sir I will Continue using it I just want to make my first game leaning more from you..please keep Teaching us..!!🙏🙏