Math for Game Devs [2022, part 1] • Numbers, Vectors & Dot Product

Sdílet
Vložit
  • čas přidán 14. 05. 2024
  • Primarily for my students at FutureGames - I will only read chat/superchats during breaks!
    Find out more about the school at futuregames.se/
    ❓ FAQ ❱ acegikmo.notion.site/FAQ-8b62...
    💖 Support me on Patreon ❱ / acegikmo
    📺 I usually stream on twitch ❱ / acegikmo
    💬 Join my discord ❱ / discord
    🐦 Follow me on twitter ❱ / freyaholmer
    (timestamps courtesy of @manuvaad from the comments! thank u)
    0:00:00 Intro
    0:24:40 Number line, vector fundamentals
    1:05:26 2D Vectors
    1:29:14 Vector length (magnitude)
    1:42:12 Vector normalization
    1:52:04 Q: "Is there a term for vector that fits in a square instead of circle?"
    1:55:33 Vector length (code version)
    2:09:27 Vector multiplication
    2:17:08 Dot product use cases
    2:42:10 Practice
    2:54:21 Note about scalar projection
    2:55:00 Vector projection
    3:01:46 Assignments
    3:20:00 Questions

Komentáře • 216

  • @manuvaad
    @manuvaad Před rokem +220

    24:40 number line, vector fundamentals
    1:05:26 vector in two-dimensional Cartesian coordinates
    1:29:14 finding vectors' length
    1:42:12 normalized vector
    1:52:04 Q: "Is there a term for vector that fits in a square instead of circle?"
    1:55:33 finding vectors' length (code version)
    2:09:27 vector multiplication
    2:17:08 dot product use cases
    2:42:10 practice
    2:54:21 note about scalar projection
    2:55:00 vector projection
    3:01:46 assignments
    3:20:00 questions

  • @RobertThomsonDev
    @RobertThomsonDev Před rokem +81

    Bout to study all of these in succession! your splines tutorial helped me so much already, thanks for everything you do!

  • @egemenka1
    @egemenka1 Před rokem +10

    Wow, this video is absolutely amazing! Freya's method of explaining math concepts for game development is truly brilliant. The way she presents the material is so clear, concise, and easy to understand. The examples and visuals used throughout the video were incredibly helpful in solidifying my understanding of the subject matter. I can't thank you enough for sharing this valuable resource, Freya. You are a gifted educator, and I look forward to watching more of your videos in the future. Keep up the fantastic work!

  • @tarsyth3433
    @tarsyth3433 Před rokem +181

    Lecture starts at 24:40 :)

  • @frostl3d
    @frostl3d Před rokem +3

    Thank you so much for posting it!

  • @lorenbeall147
    @lorenbeall147 Před rokem +4

    welcome back Freya. happy to see you again. very good content.

  • @ErikBorchersVR
    @ErikBorchersVR Před rokem +2

    Thank you for posting these videos on CZcams!

  • @abeni3432
    @abeni3432 Před 2 měsíci +4

    I just bumped into this channel, specifically, this video. THIS WOMAN IS AMAZING!!

  • @omgawesomeomg
    @omgawesomeomg Před rokem +30

    In case someone is struggling with the fact that the vector a-b gives you the vector from b to a and not the other way around, maybe this helps:
    To get from b to a, you can first subtract b (i.e. -b) to get back to zero and then add a (i.e. +a). So the vector from b to a can be written as -b+a and since we're allowed to flip the numbers (or vectors) around when doing addition, this is the same as a+(-b) or simply a-b.

    • @cptwoody7103
      @cptwoody7103 Před rokem

      maybe this is principle of change any children's transform space to any of transform space you want ?

    • @tljstewart
      @tljstewart Před rokem +6

      Think of it as Final minus Initial, it’s a common concept in math and science and can be applied generally.

    • @sullivan3503
      @sullivan3503 Před rokem +3

      Also delta x = xf - xi. That is final minus initial.

    • @testdriver3146
      @testdriver3146 Před 10 měsíci

      @@UNABRIDGED_SCIENCE You have so many issues that I don't even know where to start. Seek some help. Maybe start with your social skills, then follow up with English language classes. Really. Seek some help.

  • @GameDevEFacil
    @GameDevEFacil Před rokem +5

    oh no, I lost it lol
    keep doing it please, you're my math savior

  • @vuxius5670
    @vuxius5670 Před rokem +2

    It really worked for me after I look and try some tutorials, yours is the one that worked. Owe you a lot.

  • @henrmota
    @henrmota Před rokem +2

    Very nice of you to put all this effort teaching this ❤!

  • @trungnguyencong3216
    @trungnguyencong3216 Před 7 měsíci +4

    "a lot of people forget math" Thank you, you are a lifesaver. I am someone from a different field who used to work in web development for 2 years, but I am very passionate about Unity programming and transitioning into it. I have forgotten most of my math, but thanks to this series of yours, I hope it will help me in the learning and self-development process.

  • @typhoonsgt6507
    @typhoonsgt6507 Před rokem +11

    Hello thank you for creating videos like this. I am an upcoming college student who will take this course and I am very bad at math and I am scared to lose my scholarship that I acquired if I fail math that is why I am thankful for you for making these for free

  • @vjfnv8463
    @vjfnv8463 Před 11 měsíci +1

    I cannot believe what I am seeing it with my eyes! LOOL TY SO MUCH!

  • @j0rge1454270
    @j0rge1454270 Před rokem +4

    Yes! I'm heading to work so won't be able to watch until later. Thanks for the upload later!!

  • @philosophia5577
    @philosophia5577 Před 9 měsíci +6

    I wat to let you know that you have reached your target audience. Just found your channel while learning how to write custom shaders in Flutter(its a UI Toolkit) and while I was also looking for math, I found your channel! Keep it up for all the amazing work you have done!

    • @okeowoaderemi
      @okeowoaderemi Před 8 měsíci

      I legit came here after entering Animation in Flutter. Wild, did you see an resource for animation. I'm trying to improve my math.

  • @DonChups
    @DonChups Před rokem +5

    Thanks a lot for this class.

  • @sagenodes
    @sagenodes Před 14 dny

    Beautiful and Amazing, thank you!

  • @Mentox2
    @Mentox2 Před měsícem

    Thank you so much for making this series.

  • @zoop391
    @zoop391 Před rokem +26

    I really appreciate the courtesy for uploading the stream, thanks.

  • @MultiToto07
    @MultiToto07 Před 15 dny

    Thank you very much for creating such free quality resources ! You are so great
    🙏

  • @samolodaimao2972
    @samolodaimao2972 Před rokem +13

    J'aime beaucoup ton travail !

  • @Kindjie
    @Kindjie Před rokem +80

    Hi Freya! Just stopping by quickly (before even watching the VOD) to say thank you for doing this series! We really appreciate you and what you're doing... Even old guys like me who need to refresh our failing memories now and then. 😅Please keep up the good work. 😊

    • @dannys_85
      @dannys_85 Před rokem +8

      Wy how old you are? 37 hire still learning every day for some years now.

    • @Pneumostome
      @Pneumostome Před rokem +5

      I'm 61 with extensive background in 3D, simulation, and so forth, but trying to get my mind around the actual guts of interactivity, eg. programming/scripting and MATH! Thank you for these videos.

  • @rat_king-
    @rat_king- Před rokem

    that art is so amazing!

  • @idsappples
    @idsappples Před rokem

    thank you for your service

  • @-Engineering01-
    @-Engineering01- Před rokem +3

    When i got my second job I wanna to thank you with a huge support, thanks Freya !

  • @techthyself
    @techthyself Před 6 dny

    Amazing, yet reasonable formulated.

  • @NosebleeddeGroselha
    @NosebleeddeGroselha Před 10 měsíci +5

    If my math teachers in middle/high school were lovely people who love cats, I would be a math genius by now
    I never developed anything, but suddenly had an idea that would make a great game for my final project in college, so I decided to take in the challenge. I’m sure your content will literally save my life. I haven’t even watched an hour of it yet and I already love your way of teaching, I can’t believe you’re putting all this out for free! Thank you so much for all this, Freya. +1 sub!

  • @mulualemtekle6094
    @mulualemtekle6094 Před rokem +2

    heyyy, thanks for doing this!

  • @konstantinkhrebtov3042

    you are great teacher!!!

  • @quas67
    @quas67 Před rokem

    Legend is back

  • @slavaukharikkim4833
    @slavaukharikkim4833 Před rokem +9

    Спасибо! Большое человеческое спасибо!

  • @CanadianBoyArt
    @CanadianBoyArt Před rokem +1

    thank you so much.❤ If possible, please share the slides with us.

  • @chibiparadox
    @chibiparadox Před rokem +3

    Um actually the vector at 1:32:20 would be a-b not b-a. For length direction doesn't matter, but b-a would point the other way.

  • @MichaelCharlesAubrey
    @MichaelCharlesAubrey Před rokem

    I love your K702s!

  • @testdriver3146
    @testdriver3146 Před 10 měsíci

    Great information and some interesting ways to explain. Thank you very much.
    Inget e' som gamla Svedala !

  • @Dexterdevloper
    @Dexterdevloper Před měsícem

    I really appreciate it.

  • @RegenerationOfficial
    @RegenerationOfficial Před rokem +3

    1:00 you are correct, youtube got way more mainstream and approachable for disabled

  • @andyvandenberghe6364
    @andyvandenberghe6364 Před 11 měsíci

    amazing i just found this channel.

  • @Deewens
    @Deewens Před rokem

    Hello, many thanks for the video. Will you share the board you just draw everything in?

  • @iamgruff
    @iamgruff Před rokem +8

    Hey megabosscat Freya, I noticed after the 1hr ish mark you mentioned that imaginary numbers are not important to game dev, but... Quaternions :)) I get what you are inferring i think, which is that it is unlikely any engine user will ever customise a quaternion implementation themselves and therefore can simlpy just use them when calling to some in-engine wrapper like Quaternion.Something(). But from a mathy POV [which you said you were coming from I think], its pretty important to represent orientations and rotations in game math, especially when aiming not to incur things like rotational edge cases such as gimble lock [when using Euler math to solve for O and R]. Your great by the way, and I'm certainly not trying to throw any shade/or corrective attitude at yuo (i've learned so so much from your content), but I think it might be fairer to say something like "they sit lower down the chain in game math where a dev might not need to know much about the inner workings, but be satisified the math has been proven so it can be used without worry of the constraints that come with using Euler method. ?? i dunno, am I wrong here, or did I misinterpret this part of this absolutely amazing long form lecture?! Thanks for all your super hard work to deliver this stuff, I literally love catching up on your latest videos. [Also, if you have time, let me know if I did misinterpret the whole imaginary numbers section on whether one should at least know about imaginary nums] 🥲

    • @acegikmo
      @acegikmo  Před rokem +10

      most people who use quaternions never actually understand or unravel the inner workings, and I would even go as far as to say, most people making engines also don't really have to learn how quaternions work, you can just copy/paste code and trust the math and you'll be fine. so yeah, this is why I don't consider it important. it's interesting though!

    • @myth0genesis
      @myth0genesis Před rokem +4

      @@acegikmo I'm actually using imaginary numbers right now for the solution of the signed distance field of a quadratic Bezier curve in a ray marched shader.

  • @fbl2022
    @fbl2022 Před rokem +3

    Oh man! your live took place at 5:00 am in my country😫 ...anyway, YOU GREAT✌😁👍

  • @serefine927
    @serefine927 Před 11 měsíci

    I woke up to this. I left a crochet vid one to fall asleep but this also good

  • @mathbbn2676
    @mathbbn2676 Před 11 měsíci

    very well. I want to teach like this . so very clear exercise

  • @adamrees3740
    @adamrees3740 Před 2 měsíci

    This Video should be mandatory in all Schools Globally 😂

  • @skeleton_craftGaming
    @skeleton_craftGaming Před 9 měsíci

    I would argue , like calculus, imaginary numbers are used to very frequently. If you're designing your own physics engine. But especially imaginary numbers are used a lot by people. It's just abstracted into functions.

  • @konstantinkhrebtov3042

    very good idea 3:57:xx when you move the formula to the same vector!!!!!

  • @Vazzible_gaming
    @Vazzible_gaming Před 6 měsíci

    You should teach computational geometry, I think you would be very good at it.

  • @official_mixedfisher198

    impressive asf

  • @elizabethmonroe2290
    @elizabethmonroe2290 Před 9 měsíci

    okay, so a vector is just a point that can become something based on context, like a position, direction, or offset?

  • @thejaycem
    @thejaycem Před 8 měsíci

    u'r an angel!

  • @invaderzip7356
    @invaderzip7356 Před rokem

    To draw a perfectly straight line in photoshop in any direction. To draw a perfect horizontal or vertical you can hold shift and draw horizontal or vertical. To draw in any other angle, First you must put a dot in the starting point the hold down shift and place a dot at the end point.

    • @acegikmo
      @acegikmo  Před rokem +1

      not with a tablet pen, pen pressure makes the line basically invisible

    • @invaderzip7356
      @invaderzip7356 Před rokem

      @@acegikmo you may have the widows ink on that may be messing it up. i have a wacom intuos. windows ink tends to mess up quite a few things in photoshop for drawing tablets

    • @acegikmo
      @acegikmo  Před rokem

      @@invaderzip7356 I mean the tablet works fine, it's just that it takes pen pressure into account for the start/end of the line, and unless I jam the pen into the tablet for 1 frame at the end, the line won't have full opacity

  • @ihasz0212
    @ihasz0212 Před 11 měsíci

    Hey,
    I was always interested in game dev maths that was needed forbthe programming and rendering set ups.
    You built up the information very well from the basics.
    Might I ask you a personal question?
    Do you happen to have Hungarian ancestors? When I saw your username I had the feeling that it looked Hungarian.
    Thank you for your answer!

  • @n00bphd84
    @n00bphd84 Před rokem

    Manhattan distance metric. Very fun

  • @damianoriello283
    @damianoriello283 Před 9 měsíci

    Is it a good playlist for programmers that are new in the gaming world and have a basic knowledge of math ?

  • @TPubbie
    @TPubbie Před 5 měsíci

    Are the assignments available to the public? Thanks for uploading these!

  • @konstantinkhrebtov3042

    take infinite from cercle to center like with invinite vector stablised in b

  • @realcygnus
    @realcygnus Před rokem +3

    4 hrs ! 🍿engaged 👍

  • @Zwaynn
    @Zwaynn Před 9 dny

    I fell asleep, and just woke up seeing this

  • @liquaard2824
    @liquaard2824 Před rokem

    Hi Freya , cant thank enough for these videos -- i am just about to start watching this series , should i watch Math For Game Devs (2020) before this ?

    • @lewcreative
      @lewcreative Před rokem +1

      It's more or less the same stuff, I haven't completed 2020 but, have seen part of it.

  • @konstantinkhrebtov3042

    perfect, try to change the ceros and ones under same writed you

  • @xhivo97
    @xhivo97 Před 11 měsíci

    Lol at CZcams UX with not being able to find the superchats. Idk why but CZcams has a really bad UX in the app and I guess on desktop with live chat too.

  • @nena8571
    @nena8571 Před měsícem

    First of all, this whole video is brilliant and second you are so beautiful 😊

  • @laniakeas92
    @laniakeas92 Před rokem

    Not trying to be creepy but your voice is like asmr for my ears!
    Soothing.

  • @mimimalloc
    @mimimalloc Před 7 měsíci

    Thank you for this excellent lesson that has taught me how to commit crimes with both direction and magnitude

  • @sergiohere12
    @sergiohere12 Před rokem +12

    Are there any differences between this videos and the ones you did 1 year ago? Is there more content? I'm doing a videogame master and I would be interested in learning more about math because I really suck hah. Should I watch this new one from 2022 or the old one?
    Thanks in advance!

    • @acegikmo
      @acegikmo  Před rokem +12

      the content is about the same, but the old ones are edited to remove pauses and whatnot, so they are a little easier to watch! The end of this course will have some new things though

    • @sergiohere12
      @sergiohere12 Před rokem +4

      @@acegikmo great, thanks so much for clarifying it and for your incredible work!

    • @leif1075
      @leif1075 Před rokem

      @@acegikmo just to confirm is this the type of math thst is useful and relevant to people who want to get into designing and developing video games?? Thanks for sharing freely for those who can't afford classes now if so!

    • @acegikmo
      @acegikmo  Před rokem +1

      @@leif1075 yep!

    • @leif1075
      @leif1075 Před rokem

      @@acegikmo Thanks for answering. Would you say it is a comprehensive beginner course or it goes a little beyond a beginner course evrn?

  • @juanfranciscocastillo5149

    Great!!! 🙋🏻‍♂️👍

  • @Aloga_
    @Aloga_ Před rokem +2

    I will watch this video over and over again. 🤍

  • @ophelia6044
    @ophelia6044 Před rokem

    you almost always have your headset on, is it a habit just to casual have it on or do you actually have it playing something?
    I just like to have it casually myself...

  • @sankalpadhakal9216
    @sankalpadhakal9216 Před 7 měsíci

    good game bro. big fan from noth redriver

  • @pcb5135
    @pcb5135 Před 2 měsíci

    How does this distance formula looks in the equation? 35:40

  • @howdarethee
    @howdarethee Před rokem +1

    Hey Freya! Are you using plain Photoshop for your live presentation and which tablet are you working on?

    • @acegikmo
      @acegikmo  Před rokem +3

      Wacom intuos pro w. vanilla Photoshop yeah!

    • @fangornthewise
      @fangornthewise Před rokem

      There is more than one type of Photoshop? O.o

  • @sun4positive
    @sun4positive Před 9 měsíci

    I think tour right using CZcams vs Twitch! 👍👍👍👍

  • @fatherless_activity
    @fatherless_activity Před 5 měsíci

    25:18 WHO STARTS THEIR 4 WITH THE LINE FIRST

  • @Peregonn1
    @Peregonn1 Před 5 měsíci

    What is a hotkey in photoshop to swicth between colors in a swatch? like here: 31:43. But sometimes you choose color with a cursor...

    • @acegikmo
      @acegikmo  Před 5 měsíci

      I've added custom shortcuts for my colors! I use a streamdeck to make it a little easier
      twitter.com/FreyaHolmer/status/1678773554882699264

  • @alemswazzu
    @alemswazzu Před 5 měsíci

    Good video. I appreciate the work.
    The constant zooming in and out and moving around the screen towards the middle of the video drove me nuts though.

  • @supertenchoo4271
    @supertenchoo4271 Před 11 měsíci

    Hey Freya Holmer why not write math book for gamedevelopment

  • @stateofthefuck2089
    @stateofthefuck2089 Před 10 měsíci

    it helps me a lot

  • @Rick-ng3lr
    @Rick-ng3lr Před rokem

    Awesome!!

  • @adhochero6619
    @adhochero6619 Před rokem

    I would have joined the live stream, but I was fast asleep.

  • @duckman6403
    @duckman6403 Před rokem

    i'm a graduate and im stuck on the first assignment. Don't want to look anything up. My prospects are over before they even began...

  • @cleitonthiagomoreiramonte3913

    Question: what is the name of the artist who did the cover/illustration for your chanel?

  • @ApexFunplayer
    @ApexFunplayer Před rokem

    Thanks for the math lesson gorgeous. I needed to code a semi-potato airplane system and I couldn't get the math down. 15 years is a long time since trig and calculus.

  • @johnpaulodevera1281
    @johnpaulodevera1281 Před 6 měsíci

    I love your cat!

  • @princemandal7393
    @princemandal7393 Před 7 dny

    which country are you from

  • @Shineglow
    @Shineglow Před měsícem

    is it possible to create bouncing laser without cross product? I can't understand how to reflect ray using only dot product.
    I know that hit point, normal, and direction makes a plane that can have only 2 ortogonal. i want to get one of them to get annother orthogonal and then reflect my ray with normal and second vector orthogonal to may ray (first is normal).
    Can someone give me a hint on how I can achieve this with just the tools in this video?

    • @Shineglow
      @Shineglow Před měsícem

      I still haven't checked it out, but I think I've found the solution:
      var pointOfProjectToNormal = dot(-ray, normal) * normal;
      var halfedVectorToMirrored = pointOfProjectToNormal - (-ray);
      pointOfProjectToNormal += halfedVectorToMirrored;
      nextRayDirection = pointOfProjectToNormal.normal; // mirrored direction

  • @JuneTreeDraws
    @JuneTreeDraws Před 5 měsíci

    Came for learning math for game devs, stayed for the most based AI image generation opinions by Freya

  • @isaiah1975
    @isaiah1975 Před 9 měsíci

    Im no game dev but this is interesting 🤔

  • @KendricStern
    @KendricStern Před 10 měsíci

    What university let you own your likeness and lectures?

    • @acegikmo
      @acegikmo  Před 9 měsíci +1

      I teach at futuregames in stockholm, which is a vocational education, not a university!

    • @KendricStern
      @KendricStern Před 9 měsíci

      @@acegikmo Thanks for upload! Do any of the students have links to the projects they finished?

  • @felipedejesus6696
    @felipedejesus6696 Před rokem

    Wao q padres conceptos... 🙊!

  • @vitasjasiukonis8631
    @vitasjasiukonis8631 Před rokem

    What course is this from where you teach?

    • @acegikmo
      @acegikmo  Před rokem +1

      this is my math class for my students at futuregames! (link in description)

    • @vitasjasiukonis8631
      @vitasjasiukonis8631 Před rokem +2

      @@acegikmo thanks. I’ll look a little more navigating the site. I’m just trying to build a foundation when getting into Linear algebra and mult variable Calc next spring, with some programing along the way. Great content with applications. Thanks for your work.

  • @sazhchocobo
    @sazhchocobo Před 7 měsíci

    easiest sub of my life

  • @amirmoezz
    @amirmoezz Před rokem

    Hi there, What exactly is this? And what are the examples of its uses?

    • @acegikmo
      @acegikmo  Před rokem

      all of this is in the context of math for game developers, specifically programmers and technical artists

    • @amirmoezz
      @amirmoezz Před rokem

      @@acegikmo does it have any uses for an ordinary individual?

    • @acegikmo
      @acegikmo  Před rokem

      @@amirmoezz it might! depends on what you do in life

    • @amirmoezz
      @amirmoezz Před rokem

      @@acegikmo understood, thanks for taking your time. I'm not a graphic designer anyway, but the whole algebras and formulas sounded interesting.

  • @elitequeef
    @elitequeef Před 11 měsíci

    As a dev, you need calculus to do what I do love. ;)

  • @baraksmash
    @baraksmash Před rokem +1

    SPOILER ALERT:
    3:37:00
    Floofer Scooter

  • @pcb5135
    @pcb5135 Před 2 měsíci

    Im confused about vector normalization marking, at first it was: a/||a||
    but later it says: a with a hat ^

    • @pcb5135
      @pcb5135 Před 2 měsíci

      i figured that out

  • @Dweeb212
    @Dweeb212 Před 6 měsíci

    Man, I get this is math for gaming but you just opened up my eyes with the dot product alone to how this applies to many fields outside of game development, yet share the same mathematical frameworks i guess. Good stuff for artificial intelligence and a lot of it uses vector mathematics. Taking data and giving it one value that describes an objects relationship to its system and its contents.
    My idea of the dot product (with this video as my source) as i typed to gpt3 was
    " Because ultimately, the dot product is used to know is an object in front of or behind some other object. Ultimately it's relationships to its surroundings and or things with or within the system
    And it works perfectly for something like a neural network because it's the accumulation of of data to give one number that describes the relationship of it's quantitative contents ?" Sorry if that sounds off. but it said i "captured the essence quite accurately".
    I'm still learning and need to finish this video, but my notes from this course have been beautiful.
    I truly had no idea just how crucial vectors are to the way we live until I seen this. This was a great afternoon. Thanks.

  • @IcedDoubleYT
    @IcedDoubleYT Před 11 měsíci

    if i suck at math can I still become a game dev

  • @tolkienfan1972
    @tolkienfan1972 Před 10 měsíci

    Yt only just now recommended this. Stupid algo. At least I see it now