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

Поділитися
Вставка
  • Опубліковано 9 тра 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

КОМЕНТАРІ • 216

  • @manuvaad
    @manuvaad Рік тому +218

    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 Рік тому +80

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

  • @tarsyth3433
    @tarsyth3433 Рік тому +182

    Lecture starts at 24:40 :)

  • @egemenka1
    @egemenka1 Рік тому +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!

  • @abeni3432
    @abeni3432 Місяць тому +4

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

  • @lorenbeall147
    @lorenbeall147 Рік тому +4

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

  • @trungnguyencong3216
    @trungnguyencong3216 7 місяців тому +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.

  • @philosophia5577
    @philosophia5577 9 місяців тому +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 8 місяців тому

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

  • @frostl3d
    @frostl3d Рік тому +3

    Thank you so much for posting it!

  • @vuxius5670
    @vuxius5670 Рік тому +2

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

  • @typhoonsgt6507
    @typhoonsgt6507 11 місяців тому +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

  • @henrmota
    @henrmota Рік тому +2

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

  • @GameDevEFacil
    @GameDevEFacil Рік тому +5

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

  • @ErikBorchersVR
    @ErikBorchersVR Рік тому +2

    Thank you for posting these videos on UA-cam!

  • @omgawesomeomg
    @omgawesomeomg Рік тому +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 Рік тому

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

    • @tljstewart
      @tljstewart Рік тому +6

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

    • @sullivan3503
      @sullivan3503 Рік тому +3

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

    • @testdriver3146
      @testdriver3146 10 місяців тому

      @@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.

  • @Kindjie
    @Kindjie Рік тому +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 Рік тому +8

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

    • @Pneumostome
      @Pneumostome Рік тому +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.

  • @samolodaimao2972
    @samolodaimao2972 Рік тому +13

    J'aime beaucoup ton travail !

  • @DonChups
    @DonChups Рік тому +5

    Thanks a lot for this class.

  • @j0rge1454270
    @j0rge1454270 Рік тому +4

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

  • @vjfnv8463
    @vjfnv8463 10 місяців тому +1

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

  • @NosebleeddeGroselha
    @NosebleeddeGroselha 10 місяців тому +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!

  • @zoop391
    @zoop391 Рік тому +26

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

  • @MultiToto07
    @MultiToto07 10 днів тому

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

  • @rat_king-
    @rat_king- Рік тому

    that art is so amazing!

  • @Mentox2
    @Mentox2 Місяць тому

    Thank you so much for making this series.

  • @techthyself
    @techthyself 18 годин тому

    Amazing, yet reasonable formulated.

  • @idsappples
    @idsappples Рік тому

    thank you for your service

  • @slavaukharikkim4833
    @slavaukharikkim4833 Рік тому +9

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

  • @sagenodes
    @sagenodes 9 днів тому

    Beautiful and Amazing, thank you!

  • @mulualemtekle6094
    @mulualemtekle6094 Рік тому +2

    heyyy, thanks for doing this!

  • @iamgruff
    @iamgruff Рік тому +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  Рік тому +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 Рік тому +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.

  • @-Engineering01-
    @-Engineering01- Рік тому +3

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

  • @testdriver3146
    @testdriver3146 10 місяців тому

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

  • @chibiparadox
    @chibiparadox Рік тому +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.

  • @quas67
    @quas67 Рік тому

    Legend is back

  • @Deewens
    @Deewens Рік тому

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

  • @fbl2022
    @fbl2022 Рік тому +3

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

  • @CanadianBoyArt
    @CanadianBoyArt Рік тому +1

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

  • @RegenerationOfficial
    @RegenerationOfficial Рік тому +3

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

  • @konstantinkhrebtov3042
    @konstantinkhrebtov3042 23 дні тому

    you are great teacher!!!

  • @MichaelCharlesAubrey
    @MichaelCharlesAubrey Рік тому

    I love your K702s!

  • @TPubbie
    @TPubbie 5 місяців тому

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

  • @mathbbn2676
    @mathbbn2676 10 місяців тому

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

  • @Dexterdevloper
    @Dexterdevloper Місяць тому

    I really appreciate it.

  • @liquaard2824
    @liquaard2824 Рік тому

    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 Рік тому +1

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

  • @konstantinkhrebtov3042
    @konstantinkhrebtov3042 23 дні тому

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

  • @skeleton_craftGaming
    @skeleton_craftGaming 9 місяців тому

    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.

  • @adamrees3740
    @adamrees3740 2 місяці тому

    This Video should be mandatory in all Schools Globally 😂

  • @andyvandenberghe6364
    @andyvandenberghe6364 11 місяців тому

    amazing i just found this channel.

  • @invaderzip7356
    @invaderzip7356 Рік тому

    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  Рік тому +1

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

    • @invaderzip7356
      @invaderzip7356 Рік тому

      @@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  Рік тому

      @@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

  • @thejaycem
    @thejaycem 8 місяців тому

    u'r an angel!

  • @Vazzible_gaming
    @Vazzible_gaming 6 місяців тому

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

  • @serefine927
    @serefine927 11 місяців тому

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

  • @sergiohere12
    @sergiohere12 Рік тому +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  Рік тому +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 Рік тому +4

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

    • @leif1075
      @leif1075 Рік тому

      @@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  Рік тому +1

      @@leif1075 yep!

    • @leif1075
      @leif1075 Рік тому

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

  • @elizabethmonroe2290
    @elizabethmonroe2290 8 місяців тому

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

  • @ihasz0212
    @ihasz0212 11 місяців тому

    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!

  • @official_mixedfisher198
    @official_mixedfisher198 7 днів тому

    impressive asf

  • @realcygnus
    @realcygnus Рік тому +3

    4 hrs ! 🍿engaged 👍

  • @damianoriello283
    @damianoriello283 9 місяців тому

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

  • @konstantinkhrebtov3042
    @konstantinkhrebtov3042 23 дні тому

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

  • @Zwaynn
    @Zwaynn 3 дні тому

    I fell asleep, and just woke up seeing this

  • @howdarethee
    @howdarethee Рік тому +1

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

    • @acegikmo
      @acegikmo  Рік тому +3

      Wacom intuos pro w. vanilla Photoshop yeah!

    • @fangornthewise
      @fangornthewise Рік тому

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

  • @n00bphd84
    @n00bphd84 Рік тому

    Manhattan distance metric. Very fun

  • @nena8571
    @nena8571 Місяць тому

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

  • @laniakeas92
    @laniakeas92 Рік тому

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

  • @mimimalloc
    @mimimalloc 7 місяців тому

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

  • @konstantinkhrebtov3042
    @konstantinkhrebtov3042 23 дні тому

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

  • @juanfranciscocastillo5149
    @juanfranciscocastillo5149 Рік тому

    Great!!! 🙋🏻‍♂️👍

  • @ophelia6044
    @ophelia6044 Рік тому

    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...

  • @Peregonn1
    @Peregonn1 5 місяців тому

    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  5 місяців тому

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

  • @cleitonthiagomoreiramonte3913
    @cleitonthiagomoreiramonte3913 Рік тому +2

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

  • @xhivo97
    @xhivo97 10 місяців тому

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

  • @alemswazzu
    @alemswazzu 4 місяці тому

    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.

  • @pcb5135
    @pcb5135 2 місяці тому

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

  • @sun4positive
    @sun4positive 9 місяців тому

    I think tour right using UA-cam vs Twitch! 👍👍👍👍

  • @sankalpadhakal9216
    @sankalpadhakal9216 7 місяців тому

    good game bro. big fan from noth redriver

  • @Aloga_
    @Aloga_ Рік тому +2

    I will watch this video over and over again. 🤍

  • @fatherless_activity
    @fatherless_activity 5 місяців тому

    25:18 WHO STARTS THEIR 4 WITH THE LINE FIRST

  • @ApexFunplayer
    @ApexFunplayer Рік тому

    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.

  • @vitasjasiukonis8631
    @vitasjasiukonis8631 Рік тому

    What course is this from where you teach?

    • @acegikmo
      @acegikmo  Рік тому +1

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

    • @vitasjasiukonis8631
      @vitasjasiukonis8631 Рік тому +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.

  • @supertenchoo4271
    @supertenchoo4271 11 місяців тому

    Hey Freya Holmer why not write math book for gamedevelopment

  • @adhochero6619
    @adhochero6619 Рік тому

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

  • @duckman6403
    @duckman6403 Рік тому

    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...

  • @Dweeb212
    @Dweeb212 6 місяців тому

    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.

  • @isaiah1975
    @isaiah1975 9 місяців тому

    Im no game dev but this is interesting 🤔

  • @princemandal7393
    @princemandal7393 2 дні тому

    which country are you from

  • @johnpaulodevera1281
    @johnpaulodevera1281 6 місяців тому

    I love your cat!

  • @Shineglow
    @Shineglow Місяць тому

    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 Місяць тому

      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

  • @Rick-ng3lr
    @Rick-ng3lr Рік тому

    Awesome!!

  • @KendricStern
    @KendricStern 10 місяців тому

    What university let you own your likeness and lectures?

    • @acegikmo
      @acegikmo  9 місяців тому +1

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

    • @KendricStern
      @KendricStern 9 місяців тому

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

  • @JuneTreeDraws
    @JuneTreeDraws 5 місяців тому

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

  • @pcb5135
    @pcb5135 2 місяці тому

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

    • @pcb5135
      @pcb5135 2 місяці тому

      i figured that out

  • @amirmoezz
    @amirmoezz Рік тому

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

    • @acegikmo
      @acegikmo  Рік тому

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

    • @amirmoezz
      @amirmoezz Рік тому

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

    • @acegikmo
      @acegikmo  Рік тому

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

    • @amirmoezz
      @amirmoezz Рік тому

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

  • @stateofthefuck2089
    @stateofthefuck2089 10 місяців тому

    it helps me a lot

  • @felipedejesus6696
    @felipedejesus6696 Рік тому

    Wao q padres conceptos... 🙊!

  • @elitequeef
    @elitequeef 11 місяців тому

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

  • @IcedDoubleYT
    @IcedDoubleYT 11 місяців тому

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

  • @konstantinkhrebtov3042
    @konstantinkhrebtov3042 23 дні тому

    introduce s between in a.b (s

  • @goldenkillzz7425
    @goldenkillzz7425 Рік тому

    do u draw?

  • @chiragsawajiyani8540
    @chiragsawajiyani8540 Рік тому

    Next class?