How to Calculate Direction in Unity - A Unity Math Tutorial

preview_player
Показать описание


In this unity tutorial, we take a look at how to calculate direction in Unity! This is useful if you want to know the distance between an gameobject, or if you want to create an enemy system where it chases the player! We take a look at what most believe is a useless method, but trust me! It's important. We look at how to calculate direction with the use of Pythagorean theorem!

#Unity #GameDev #CodingMath

MORE UNITY TUTORIALS

Special Thanks to all GameDevHQ Plus and Pro Members!
Рекомендации по теме
Комментарии
Автор

Are you enjoying the new Coding Math series? Do you want more math related videos? Do you want me to dive deeper into the actual mathematics? Or keep it high level? Also! What are your thoughts on a Sunday release schedule at 4pm eastern time compared to Mondays at 9am eastern time?

GameDevHQ
Автор

Do more of this, really interested in incorporating math into Game Development!!!

themysterioushatter
Автор

Thanks a lot. Keep it coming please. Such a great series already.

NoNameApprot
Автор

love u man I was starting my own game and I wasnt concerned about how does it was working, the i got stuck on a problem with raycasts. Now I fixed the error because of your video man i cant express how much did you help me i am so grateful. huge like

alfonsopineda
Автор

It seems you've only made two of these math tuts, keep making them man they're really helpful.

gojarz
Автор

thanks SO much! not many people provide any information on making enemy ai these days, and you did. Thank you so much for this. Am subbing :))

Surzom
Автор

This is the best explanation of this I have seen. I knew this but, I am not disappointed on watching

davidacosta
Автор

I'm still new but I've seen a lot of talk about normalizing the magnitude and it always left me confused! I always wondered why you needed to normalize and this video explains it wonderfully!

TheSteveTheDragon
Автор

Hey man, so I'm a beginner programmer in his first year of college. I have a had a lot of trouble understanding how the math works in Unity. This video made so many things make sense to me and opened up so many doors when it comes to programming. Thank you for making this amazing and informative video! I will be checking out your other videos on math in Unity and hopefully they help me understand more. Thank you again and keep up the great work! :D

enigmadox
Автор

This is the real gift to myself for the Christmas 2021

oomgworld
Автор

The best tutorial I've ever watched for game dev your channel will rlly help me to improve :)

samv
Автор

Really great guide. I have been using direction until now without knowing it mathematically.

TheKrckeR
Автор

Please make more of these!! this is an area in Unity that isnt really covered enough by tutorials and this is excellent stuff

trackhero
Автор

These are great, very helpful. Would love to see a whole series on practical uses of different maths in gaming/non-gaming apps.

iansterling
Автор

This is mind blowing !!!
Your explanation is SO CLEAR and simple
I’m a subscriber now

tozrimondher
Автор

Awesome... I got sin() in my recommendation today...and watched this video too.... Your way of explanation is very good ...make more about unity math

MNJThakur
Автор

Taking notes on this video. Very clearly explained. Thanks

leedavis
Автор

Fantastic video, I try to learn in godot and couldn’t imagine how direction works.
Ty so much I love videos about small but also important things
You did a great job!

ToonLikeEpic
Автор

I really enjoy this Math series coz it is better to understand what you do when you are wrintig code. And this course will help us in that way. I want it more and from beginner to high level. It will be so helpful. Thanks

Patricebrouh
Автор

Best source to understand applied vectors

alex_opr
join shbcf.ru