Vectors & Dot Product • Math for Game Devs [Part 1]

Vectors & Dot Product • Math for Game Devs [Part 1]

Freya Holmér

4 года назад

913,104 Просмотров

Ссылки и html тэги не поддерживаются

13+1=


Комментарии:

@БенькаловичМаріаннаМихайлівна
@БенькаловичМаріаннаМихайлівна - 09.05.2024 15:46

Awazimg

Ответить
@djwerd831
@djwerd831 - 05.06.2024 05:32

Thank you!!

Ответить
@porkman1838
@porkman1838 - 08.06.2024 21:17

Math applied on practical uses for games is so much enjoyable and much much more understandable than how you learn it on school. The dot product for the volume issue was so cool. I liked math on school but this is just much more cooler, is like analyzing ordinary physics of our real world into a game, I love this.

Ответить
@Eldarlll
@Eldarlll - 07.07.2024 23:24

amazing content Freya, thank you for your work
I'm trying to code a raycaster right now, and understanding the math behind it helps

Ответить
@chrischoir3594
@chrischoir3594 - 14.07.2024 20:16

what software is this?

Ответить
@dgrins552
@dgrins552 - 06.08.2024 11:50

Thanks so much, so well taught and easy to understand!

Ответить
@cooperm211
@cooperm211 - 11.08.2024 08:00

Thank you so much - this is the missing clear breakdown that I didn't have.

Ответить
@strange67x
@strange67x - 13.08.2024 17:10

LOL i knew there is something dramatically wrong. she is talking about vectors, but these are always only pairs of points, and TWO pairs of points are describing a vector !!! Dumb ...... totally wrong..... extreme bullshit what she is talking about. And this is simple maths !!!! oh my gosh !!!!

Ответить
@jtudela1
@jtudela1 - 27.08.2024 21:55

I know it's a 3 year old video, but I noticed every time you had a problem with the document "locking" Photoshop's auto save kicked in. Or you also did ctrl-s before you open/closed the document. Perhaps that's the issue with the document locking? The software "froze" any edits while the harddrive/software was doing it's thing? I've never seen photoshop ever lock a document before so your experience with it was shocking to me. The other option I thought was maybe some key combination did it, but searching the default hotkeys there isn't anything that would "lock" a document. Either way, thank you for the informative lecture.

I have always hated math and always said, "That's why I work with computers, I let it do the math for me." But the few talks and lectures I have seen of you have slowly started to change my mind and I can see the beauty of it. I believe you once said something to the effect of: most people's experience with math are from being taught by people who love it and assume the people listening to the lecture have the same feeling so they never represent it in a way that catches the other person's attention. I can say you have opened up the world of mathmatics like no other person has for me. Thank you. You've shown me how you view the world in regards to mathmatics and I agree. It can be a beautiful and interesting thing. It's no longer some abstract thing of knowledge I only had to learn to get my diploma.

Ответить
@adamrees3740
@adamrees3740 - 17.09.2024 14:58

After watching this a second time one must ask why Game Engines aren't used to bring math to life in Classrooms

Ответить
@JohnnyThund3r
@JohnnyThund3r - 25.09.2024 00:59

This was great! I just implemented some code in this submarine simulation prototype I'm working on that gives me the subs speed... I basically found someone else's code and was able to duck-tape their code into my game, but I had no idea how it worked after I got it working... now everything makes sense to me and I'm thinking about things I can do with Math I never thought about before!

Ответить
@kirangamezeniq1142
@kirangamezeniq1142 - 25.09.2024 17:01

Wow! What a lecture it is... It's really just great one. Thanks a lot.. I wish to get like this type of content.

Ответить
@aleksitjvladica.
@aleksitjvladica. - 26.09.2024 18:54

YOU LOOK LIKE A GAY TO SUCH EXTENT THAT I DEMAND TO KNOW WHAT IS HAPPENING!

Ответить
@valagautam727
@valagautam727 - 16.10.2024 19:19

What is the name of software?

Ответить
@ezpz4akash
@ezpz4akash - 17.10.2024 06:36

Thank you Freya! <3

Ответить
@richbuilds_com
@richbuilds_com - 19.10.2024 19:21

@37.59

IT WAS STARING ME IN THE FACE ALL ALONG!!!!

ffs

Ответить
@finesseandstyle
@finesseandstyle - 26.10.2024 07:32

I have one crucial use cases of the dot product for a 3D space game I'm making
Determining which target I'm looking looking at in relation to the cursor direction (point from camera to the crosshair).
You can make a targeting system that selects the target closest to your cursor with that. You can also add a power modifier (like 0.2) to the already selected target so it has more priority and you don't accidentally switch targets.

I also use the same principle to highlight the lead target reticle if I'm looking inside it so that means I'm accurately pointing my turret gun to the predicted location of impact.

Ответить
@HenleyBailey
@HenleyBailey - 02.11.2024 00:25

Some great information, thank you.

Ответить
@SvartVargSkog
@SvartVargSkog - 02.11.2024 03:33

You will never be a real woman. You have no womb, you have no ovaries, you have no eggs. You are a homosexual man twisted by drugs and surgery into a crude mockery of nature’s perfection.

All the “validation” you get is two-faced and half-hearted. Behind your back people mock you. Your parents are disgusted and ashamed of you, your “friends” laugh at your ghoulish appearance behind closed doors.

Men are utterly repulsed by you. Thousands of years of evolution have allowed men to sniff out frauds with incredible efficiency. Even trannies who “pass” look uncanny and unnatural to a man. Your bone structure is a dead giveaway. And even if you manage to get a drunk guy home with you, he’ll turn tail and bolt the second he gets a whiff of your diseased, infected axe wound.

You will never be happy. You wrench out a fake smile every single morning and tell yourself it’s going to be ok, but deep inside you feel the depression creeping up like a weed, ready to crush you under the unbearable weight.

Eventually it’ll be too much to bear - you’ll buy a rope, tie a noose, put it around your neck, and plunge into the cold abyss. Your parents will find you, heartbroken but relieved that they no longer have to live with the unbearable shame and disappointment. They’ll bury you with a headstone marked with your birth name, and every passerby for the rest of eternity will know a man is buried there. Your body will decay and go back to the dust, and all that will remain of your legacy is a skeleton that is unmistakably male.

This is your fate. This is what you chose. There is no turning back.


good explanation though, bög

Ответить
@ukumax1
@ukumax1 - 07.12.2024 00:05

i just woke up to this

Ответить
@Nazara50000
@Nazara50000 - 09.12.2024 00:42

Been modding recently and needed to refresh my mind on the Mechanics side of maths and watched 2 videos and on yours I managed to misinterpret your section on normalisation to mean that you can only have 8 directions because the vector can only be 1 or -1 and I knew i'd fucked up somewhere so then i looked elsewhere & also asked ChatGPT and realised it was only about magnitude and that something like your (3x,2y) coordinate would be (0.83, 0.55) after normalising it lol

Ответить
@splits8999
@splits8999 - 23.12.2024 14:51

handle the cat lmao, good video thank u alot

Ответить
@selah6778
@selah6778 - 24.12.2024 19:55

Dawg I left autoplay on overnight and got jumpscared by math. When I was a kid I really wanted to make video games maybe this is a sign lol

Ответить
@shanathanhanson2190
@shanathanhanson2190 - 25.12.2024 07:11

I also call them magnitudes! <3 And I love your interpretation as to what Math is. As in it is a fundamental concept that others are built off of. Thanks for these videos, they are becoming a nice refresher for me.

Ответить
@siuuu2506
@siuuu2506 - 28.12.2024 18:31

I went to sleep and woke up to this

Ответить
@djalexander968
@djalexander968 - 30.12.2024 01:29

I like that there's the subtle implication of the sign * the magnitude gives the value, as in the direction from 0, and the distance, a 1 dimensional vector

Ответить
@wirrexx
@wirrexx - 06.01.2025 22:49

22 min in, and I alreadt understand why in godot, we use velocity.length > 0: and why it's important. Without using abs. in this case, my character would not move in the - axis.

Ответить
@Kro-n1y
@Kro-n1y - 09.01.2025 15:16

As a middle schooler I love this

Ответить
@Karsteski
@Karsteski - 14.01.2025 00:53

Very informative stream, ty

Ответить
@DexChain
@DexChain - 15.01.2025 04:35

What do you mean?
abs(x) = length/magnitude
|X| = vector2.length()/vector2.magnitude?????

Ответить
@protektwar
@protektwar - 23.01.2025 10:21

3h for vector and dot product?!

Ответить
@moonchldexe4751
@moonchldexe4751 - 24.01.2025 21:32

I followed your channel more than a year ago when I got interested in game development. but due to my engineering degree I was supposed to just get through with it. but now when im in my last semester of engineering, I started actually watching your videos which helps me actually enjoy this field. so thankful that I came across your channel. and you make this so fun

Ответить
@frankiecal3186
@frankiecal3186 - 28.01.2025 13:30

Is this a guy?

Ответить
@Sasham4
@Sasham4 - 02.02.2025 06:54

yes you will move 3 boxes to right, then move those 3 boxes back to where they were - and we will not pay you a dime for you did no work at all :P - did metrics on abs vs cast to unsigned long, cast is about 25%+ faster in debug, at compile time probably same or faster still

Ответить
@IceAaron
@IceAaron - 02.02.2025 06:59

教的太好了吧,我最近才在學遊戲開發,裏面教的概念教學加上圖像化展示一下就懂,非常適合用圖像思考的我,也在努力看shader影片,有開其它課嗎

Ответить
@fernandosalcido1479
@fernandosalcido1479 - 18.02.2025 06:06

Thanks for doing this!

Ответить
@CrimsonLilac-w8o
@CrimsonLilac-w8o - 23.02.2025 05:43

lets gooo

Ответить
@Денис-с4я1щ
@Денис-с4я1щ - 24.02.2025 20:06

I love you baby!!!

Ответить
@Денис-с4я1щ
@Денис-с4я1щ - 28.02.2025 16:58

Clearly explained. Great lessons

Ответить
@badrakhariunchimeg1031
@badrakhariunchimeg1031 - 03.03.2025 04:46

Unity seems @notequalme6632

Ответить
@webmaster246
@webmaster246 - 04.03.2025 20:10

Smart way of approaching vector norm via dot(a, a), however this is bad practice, when we consider a lot of Game Devs who are watching this are newbies.

Ответить
@quinn4thawin
@quinn4thawin - 10.03.2025 03:40

Bro did not need that intro. So weird to see bright successful ppl completely lost and feeling the need to justify like literally everything about their existence. Be a froot loop idc dress like a girl idc but keep the self righteous bs away from education. We can laugh at you just as much as we can learn from you.

Ответить
@KafeinBE
@KafeinBE - 08.04.2025 21:54

OMG I never realized you made Budget Cuts! I had a great time playing this game. It made very good use of VR capabilities while also being really simple.

Ответить