Game Math is easier than you think.

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2024
  • Linear Algebra is a scary term that is often associated with Game Development, but the reality is that the average game developer will only use simple arithmetic when making their games.
    My goal in this video is to demystify the math that goes into making a game and show a concrete example of what can be done with extremely simple rules.
    This was technically for the 3B1B SoME1 (Summer of Math Exposition #1) Competition, but is something I have wanted to make for a while. I will make more videos like this in the future explaining either Math or Development subjects that seem scary when you first hear about them but are actually very approachable.
    #SoME1
    Timestamps:
    00:00 Intro
    00:47 What is a Vector?
    01:43 Addition
    02:22 Subtraction
    03:07 Vector Length
    03:32 Division
    04:00 Normalizing a Vector
    04:27 Multiplication
    04:51 Creating an Example
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 32

  • @mr.cookies0765
    @mr.cookies0765 2 ปีที่แล้ว +30

    vectors are more interesting than I thought, wonderful explanation

  • @sheepcommander_
    @sheepcommander_ 10 หลายเดือนก่อน +6

    THAT ENDING EXAMPLE IS SO AWESOME WTF

  • @Akosmo
    @Akosmo 2 หลายเดือนก่อน +2

    This is a wonderful video! Great explanation and the visuals really help!

  • @Paleox
    @Paleox 8 หลายเดือนก่อน +5

    once I was making a top down shooter in pygame, and the reason I stopped was because I couldn't get the sprite to look at the mouse. I didn't realize it at the time, but the script actually worked- the reason the sprite didn't look exactly at the mouse wasn't because of a programming error, it was because the sprite was rotated 90 degrees when I made it

    • @nubunto
      @nubunto 14 วันที่ผ่านมา

      I felt that in my heart dude. Hopefully one day you go back and finish it!

  • @voidofsoul8485
    @voidofsoul8485 11 หลายเดือนก่อน +4

    Duude you are way underrated the amount of clarity that your explanitions have is just incredible

  • @Kellykellamster
    @Kellykellamster 2 ปีที่แล้ว +14

    Great videos. I love how beautifully explained each one is, especially this one. Looking forward to more and will support in every way possible.

  • @GodsAutobiography
    @GodsAutobiography 3 หลายเดือนก่อน +1

    Great video. I opened up Godot to write this orbit myself and I noticed something; in the video you say " subtract the black holes position from the particles position" but in practice I had to subtract the particles position from the black holes position. Other than that, everything worked fine. I tweaked the initial velocity and multiplied the force to get a desired speed and the spawned in a grid of particles and just stared at my screen for a while.

  • @willd2609
    @willd2609 2 หลายเดือนก่อน

    this is freakin incredible. please do more!!!

  • @walvie
    @walvie 2 ปีที่แล้ว +8

    You're a natural at explaining things

  • @theARDISAN
    @theARDISAN ปีที่แล้ว +6

    I see Quote I upvote.
    ...Also because this video really helped explain things for me as someone who is terrible at math.

  • @RobertoGongora
    @RobertoGongora 2 หลายเดือนก่อน

    That example blew my mind

  • @rickygr97
    @rickygr97 ปีที่แล้ว +2

    this dude is amazing your explanation is way better than ever teacher i have ever had in such a small amount of time aswell thank you are you thinking of making videos of the same concept with the diffrent linear algebra matrics ,system of equations and curves would love to see it keep it up anyway ,,

  • @Phosypha
    @Phosypha 7 หลายเดือนก่อน

    Oh my god, as a person who has struggled to properly understand vectors for a long time, this video has helped me so much. Thank you

  • @Higgsinophysics
    @Higgsinophysics 2 ปีที่แล้ว +3

    really well made and explained!

  • @dlvjose
    @dlvjose 2 ปีที่แล้ว +2

    Vectors can be tricky but they’re fun. Great video.

  • @richbuilds_com
    @richbuilds_com 8 หลายเดือนก่อน

    Nicely done :)

  • @92LucAC
    @92LucAC 11 วันที่ผ่านมา

    I really like your videos!

  • @TH_5094
    @TH_5094 3 วันที่ผ่านมา +1

    Well, I watched every 3blue1brown video on Linear Algebra so I'm basically an expert 😎

  • @thistle1923
    @thistle1923 11 หลายเดือนก่อน

    this is such a lovely video :)

  • @whamer100
    @whamer100 2 ปีที่แล้ว +4

    very good video, vectors are fun

  • @owenlloyd2528
    @owenlloyd2528 11 หลายเดือนก่อน

    Thank you

  • @bolow
    @bolow ปีที่แล้ว +3

    Guys, hear me out.
    We are not bad at math, we got bad teachers.
    This video made me understand what a full semester couldn't.

  • @mister-8658
    @mister-8658 2 ปีที่แล้ว +3

    I'm your 100th subscriber

  • @leonss2356
    @leonss2356 11 หลายเดือนก่อน +3

    ok now quaternions💀

  • @rummanjamil1054
    @rummanjamil1054 8 หลายเดือนก่อน

    Hey there! Excellent video as always, I just wanted to ask a question. I followed your example step by step in GODOT however it is not behaving as intended. The code is below, any help would be much appreciated. Thanks
    extends Node2D
    var velocity: Vector2 = Vector2(1, 0)

    # Called every frame. 'delta' is the elapsed time since the previous frame.
    func _process(delta):
    var difference = $BlackHole.position - $Particle.position
    var direction = difference.normalized()
    var force = direction/difference
    velocity += force
    $Particle.position += velocity * delta

    • @GodsAutobiography
      @GodsAutobiography 3 หลายเดือนก่อน +1

      I did the same and found the solution. Swap the placement of black hole and particle position, i think he misspoke in the video.
      var difference = $Particle.position - $BlackHole.position

  • @rameynoodles152
    @rameynoodles152 ปีที่แล้ว

    Now, can you explain 3D transforms?

  • @catlore1697
    @catlore1697 ปีที่แล้ว

    What do you mean but taking diirection and divide by distance ? What is distends in your case ?
    6:11

    • @Bitlytic
      @Bitlytic  ปีที่แล้ว

      Distance would be the magnitude of the difference vector, so vector b - vector a

    • @catlore1697
      @catlore1697 ปีที่แล้ว

      @@Bitlytic thanks man!