AABB vs AABB Collision Detection | C Game + Engine From Scratch 07

Поділитися
Вставка
  • Опубліковано 16 лип 2022
  • If you would like to know more, here are the sources I used in no particular order:
    * noonat.github.io/intersect
    * blog.hamaluik.ca/posts/simple...
    * github.com/pgkelley4/line-seg...
    * • Handmade Hero Day 050 ... - Handmade Hero 50
    * tavianator.com/2011/ray_box.html
    * tavianator.com/2015/ray_box_n...
    * www.deengames.com/blog/2020/a...
    * Real-Time Collision Detection by Christer Ericson
    Code used in recording: github.com/Falconerd/engine-f...
    Pixel art for this series is custom made by Presley Carvalho. Check out his website here: perigic.com/
    Background pixel art for this series is Kings and Pigs by Pixel Frog. Check it out here: pixelfrog-assets.itch.io/king...
    Music for this series is from Breezy's Mega Quest by RyanAvx. Check it out here: ryanavx.itch.io/breezys-mega-...
    ➤ Patreon: / falconerd
    ➤ Website: dylanfalconer.com
    ➤ GitHub: github.com/Falconerd
    ➤ Twitch: / falconerd
    ➤ Discord: / discord

КОМЕНТАРІ • 9

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

    this is really good stuff I wish I knew earlier

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

      Thanks! It's not too late, the tech chosen isn't going anywhere any time soon ;)

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

    why would you use minkowski differences (which is the GJK algorithm right ?) if you only have AABBs at the moment ? wouldn't it be easier to just detect AABB collisions and then extend it to SAT or GJK for more complex shapes ?
    (btw didn't watch the rest of the series, just got this randomly in my recommended lol)

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

      I find the Minkowski solution very intuitive to understand once you extend it to sweep testing on moving aabbs. And then the step to GJK is also smaller. Plus there's so many edge cases with other methods, I can't remember off the top of my head, sadly...

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

    Could you please share the Vim Plugin name which you are using? This autocompletion has driven me crazy)

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

      Conquerer of Completion and GitHub Copilot

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

    How the vector was passed by value? Is it typedef'ed to a float pointer?

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

      Indeed, the vector math library used is datenwolf's linmath.h and it has typedef vec2 float[2]

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

    tunneling > speedrunners favorite word ?