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

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 10

  • @fourtwothree5422
    @fourtwothree5422 День тому

    Thank you so much, this helped me with AABB collision for my game.

  • @henryzhang6512
    @henryzhang6512 2 роки тому +3

    this is really good stuff I wish I knew earlier

    • @DylanFalconer
      @DylanFalconer  2 роки тому +1

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

  • @Stowy
    @Stowy 2 роки тому +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  2 роки тому +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...

  • @lewisliewguozhang5760
    @lewisliewguozhang5760 2 роки тому +1

    tunneling > speedrunners favorite word ?

  • @cemgecgel4284
    @cemgecgel4284 2 роки тому

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

    • @DylanFalconer
      @DylanFalconer  2 роки тому +3

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

  • @kirilldiatlov2310
    @kirilldiatlov2310 2 роки тому

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

    • @DylanFalconer
      @DylanFalconer  2 роки тому

      Conquerer of Completion and GitHub Copilot