Swept AABB Collision Detection | C Game + Engine From Scratch 08

Поділитися
Вставка
  • Опубліковано 25 лип 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-...
    ➤ Website: dylanfalconer.com
    ➤ GitHub: github.com/Falconerd
    ➤ Twitch: / falconerd
    ➤ Discord: / discord

КОМЕНТАРІ • 17

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

    Hmm this is interesting. I like the Minkowski difference approach. I just implemented this using a different algorithm, which finds the entry/exit distance using edge pairs along each axis, converts them to a normalized time (or alpha value, if you prefer) by dividing them by the distance of the sweep, then finds the latest entry and earliest exit of any axis, and returns true if entryTime

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

    it's really nice to see you back!! nice video btw

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

    very nice video. keep up the good work!

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

    Amazing! will you handle collisions of dynamic vs dynamic in future episodes? I would love to see this.

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

    Amazing video :)

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

    I love your editor and your proficiency in using it. Looks very pro. Is it vim/nvim? What plugins do you use?

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

      Hey there, yeah it's Neovim. I changed configs between videos (again!) and jumped on the Lua train. The setup I'm using is basically exactly as described in ThePrimagen's latest video: ua-cam.com/video/x2QJYq4IX6M/v-deo.html
      Plugins: nvim-cmp for autocomplete, gitsigns.nvim for git integration (I like the diffing and hunk stuff), telescope.nvim for fuzzy file search/grep and LSP stuff.
      I find this combo is cleaner than my previous one, and has less unnecessary popups flashing on the screen all the time.

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

      @@DylanFalconer Legend! Thank you!

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

    How'd you get the != symbol? Plus the whole interface looks pretty cool, what did you do it in?

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

      Hey there, I'm using WezTerm with ligatures turned on and the font Iosevka. WezTerm works well on Windows, but in my experience it's laggy on Linux. The editor is Neovim with some plugins (nvim-cmp, gitsigns.nvim, telescope.nvim)

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

    What font do you use?

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

    This was great before you started coding. You explained what we would be doing...but not the math required. I wish you would have explained the math before doing anything related to coding.

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

      I'm not the best person to explain math, that's why I used geometric algebra - it's so intuitive that you can understand it visually. I have a list of recommended sources in the description if you want to dive deeper.