Math for Game Devs [2022, part 2] solutions for assignments 1-3

2022 ж. 25 Қаз.
110 162 Рет қаралды

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

Пікірлер
  • My rough timestamps: 7:36 Assignment 1, Radial Trigger 43:07 Assignment 2, Bouncing Lazer/Reflecting Vectors 1:57:39 Rendering Normals that aren't Normalized 2:07:55 Assignment 3a, Transforming Local Space to World Space 2:29:03 Assignment 3b, Transforming World Space to Local Space 2:49:05 Questions

    @Christopher-D@Christopher-D Жыл бұрын
    • Thanks!

      @jeffersonrodrigues7570@jeffersonrodrigues7570 Жыл бұрын
  • This is underrated, you are making tutorials helpful enough to give people a good understanding of a subject while also showing good applications of the concepts, hidden gem.

    @Hasde_dfs@Hasde_dfs7 ай бұрын
  • thank You for this content Freya!! ❤️

    @andvaribekho@andvaribekho Жыл бұрын
  • Thank you so much for this great series.

    @mibforunity@mibforunity Жыл бұрын
  • Thank you very much Freya! You are the best

    @vima9046@vima9046 Жыл бұрын
  • I managed to do all of them, took all day can't wait to see how you did it.

    @xhivo97@xhivo9711 ай бұрын
  • nice series :)

    @EgorChebotarev@EgorChebotarev Жыл бұрын
  • 1:17:45 1:22:35 (how to reflect a vector)

    @francoperez4593@francoperez45933 ай бұрын
  • Where can i download the psd file (or image) of the calculations? I want to use it as a reference. btw It's a pity that Futuregames' educations are not online. It is impossible for me to go to Sweden to follow the training. Otherwise I would have signed up right away.

    @BomTheJohn@BomTheJohn8 ай бұрын
  • Gems, the game changer!

    @peatipsaesee716@peatipsaesee7169 ай бұрын
  • 3rd assignment were easier than the second.

    @OmerFarukGonen@OmerFarukGonen9 ай бұрын
  • The only reason 3b was easier for me was because they are quite similar probablems and solving 3a quite manually, gave me enough insight to be able to solve 3b with trial and error. The issue here is that I still don't have good intuition on these things. I feel like sllolving more vector problems will help me with that.

    @xhivo97@xhivo9710 ай бұрын
  • Hey Freya, for question 3a and 3b, I just subtracted the world space position of one point from its parent to get the local space, and added the parent's coordinates to the local space to get the world space. I did that since it's a simple offset calculation. Is my understanding of the problem not correct?

    @yasasvitennety4885@yasasvitennety488520 күн бұрын
  • hi You can't make a patch for Uncharted game that runs on old graphics

    @musicworld2024@musicworld2024 Жыл бұрын
  • @isilozcelik@isilozcelik Жыл бұрын
  • 2:16:47 I wonder if this something specific to game development as i'm not that (I'm just learning math for animations), but I can not figure out what does multiplying the basis vector by the coordinate means

    @glaze4629@glaze4629 Жыл бұрын
    • idk if I got it right . imagine we have 1 box object in world space , that box has own coordinate (x,y) but in unity we has transform.right for x axis of object itself and transform.up for y axis of itself. both are basis vector and normalized. somehow those has built-in calculate for rotation already (so we dont talk about rotation here) that's mean any number that you want (like your own coordinate value x,y aka. your imagine vector2 )split x and y and pair to basis vector from box space then multiply for each basis vector x and y axis then sum up to get local point in box space instead of world space. if you still catch up with me. now we can move the box to any position along with custom vector2 but relate to box space // p.s. my English skill is kinda suckass ´ //p.s.2 i could miss the point and out of line

      @cptwoody7103@cptwoody7103 Жыл бұрын
  • Thanks again for sharing knowledge! How many cats you got?

    @MarvinStoker@MarvinStoker Жыл бұрын
    • three cats! thor, salad and toast

      @acegikmo@acegikmo Жыл бұрын
    • @@acegikmo great ! I have 2 : Henri Bourrachat and Djinny. Happy new year from Québec !

      @MarvinStoker@MarvinStoker Жыл бұрын
  • why is neccecery to calculate Dot product in worldToLocal function while rel's x and y is already same as local vector ?

    @Vuecheap@Vuecheap3 ай бұрын
  • the interactive website doesn't work on the interactive part anymore 😭 i'm using firefox

    @weltraumimport@weltraumimport5 ай бұрын
  • Wow! Wait a minute. It's not fair approach to convert from local to world space. I was wondering how is this possible to do with only knowledge of vectors, without matrices. Freya is using Transform position, right, up properties. This properties should use localToWorld matrices under the hood. This is not pure math solution.

    @andriypostelzhuk9655@andriypostelzhuk9655 Жыл бұрын
    • Yes, I also thought that was too easy. I did it on raylib with pure vectors and the hardest part was finding out the right direction of my points direction. I'm guessing this explains how many people said 3a was harder, they must've not used transforms?

      @xhivo97@xhivo9710 ай бұрын
    • @@xhivo97 Excuse me, how/where did you learned how to get the direction vectors from the rotation?

      @filiperubin@filiperubin9 ай бұрын
  • luvv the catttttttzzzz :3

    @-Nighty.YT-@-Nighty.YT-9 ай бұрын
  • good player

    @pinkigupta5104@pinkigupta5104 Жыл бұрын
  • COuld you please share your Notepad++ theme? Either link or a name is good

    @Smith-wp7wn@Smith-wp7wn2 ай бұрын
    • She is using Rider IDE which is a paid IDE not Notepad++

      @supertenchoo4271@supertenchoo42712 ай бұрын
    • @@supertenchoo4271 thanks

      @Smith-wp7wn@Smith-wp7wn2 ай бұрын
  • honestly freya's life is my dream life: Game development and math, all while surrounded by adorable cats :3

    @kono152@kono1526 ай бұрын
  • Cool video. Thank you for sharing your knowledge. I love Mathematics. The beauty of Math, (in my personal opinion), is that it shows you how everything fits, numerically... Existence itself is governed by thousands of variables, equations (Quantum Physics, etc), that are changing and evolving every fraction of second (or frame). When I see something as beautiful as the Sunset, with all its colors... and also I remember that there is a Mathematical Truth like this behind all that, I can't help but believe that God has to exist, because this Work of Art didn't write itself alone, there must be a super Geek Artist behind this... sort of... Amazing & Beautiful Matrix... we live in.

    @alec_almartson@alec_almartson Жыл бұрын
  • yep im offically stupid cause i didnt get assignment 2

    @toby818@toby8184 ай бұрын
  • Should have given timesamps

    @zxdelt3015@zxdelt3015 Жыл бұрын
  • this is the path of heaven !!

    @cptwoody7103@cptwoody7103 Жыл бұрын
    • Aaaaz,

      @gabrielsajewski8785@gabrielsajewski8785 Жыл бұрын
  • LOL CAT

    @lindhalin@lindhalin5 ай бұрын
  • 1:27:00

    @marcelgraf5520@marcelgraf552010 ай бұрын
  • WHY AM I HERE ?

    @saikosam8032@saikosam80323 ай бұрын
  • in formula r = d - 2(d.n)n, Why are we doing orignalDirection - vectorProjection

    @user-be1dn8dd8x@user-be1dn8dd8x9 ай бұрын
    • i think that was probably to reflecting the direction after reach the normal surface

      @dickyd242@dickyd2429 ай бұрын
  • the out keyword is kinda hot ngl

    @lievenpetersen@lievenpetersen Жыл бұрын
    • Not a c# user but idk how I feel about the scope being outside the if block.

      @xhivo97@xhivo9711 ай бұрын
    • @@xhivo97 I think technically the if block is only between the { } and the condition is not part of it :P

      @lievenpetersen@lievenpetersen10 ай бұрын
    • @@lievenpetersen Yes, but here's where the confusion comes for me: since most languages allow you to define new variable in for loops' (/*here*/), that variable has local scope inside that for loop only. There are other languages that have syntactic sugar to do something like this pseudo code here: if (int flag = getFlag(); flag == true) { // flag has local scope in the if } Odin does that, but I wrote it in C like syntax in the above example. But the out keyword is syntactically quite different and I'm sure there's advantages and disadvantages to having it scope outside.

      @xhivo97@xhivo9710 ай бұрын
    • To add to this, I feel like if it has local scope it's a unique feature, as it is not the same as defining it before the if statement and might lower the chances for mistakes in some cases; while the out keyword seems to me it's equivalent to declaring it on top of the if statement without the added advantage scope minimization.

      @xhivo97@xhivo9710 ай бұрын
  • hay qua ban oi

    @mustarjaat@mustarjaat Жыл бұрын
KZhead