Making Physics: My Step-by-Step Journey to Create a Minecraft Physics Engine

Поділитися
Вставка
  • Опубліковано 28 чер 2024
  • I saved every step along the way to create my Minecraft physics engine datapack, and in this video I take you through that journey.
    Download the Datapack: sethbling.s3.us-west-2.amazon...
    SethBling Twitter: / sethbling
    SethBling Twitch: / sethbling
    Music: "Cipher"
    Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0
    creativecommons.org/licenses/b...
  • Ігри

КОМЕНТАРІ • 265

  • @NTSHOni
    @NTSHOni 3 місяці тому +256

    I'm making my own game engine and the physics engine is definitely the hardest part I've worked on (I fixed an issue with OBB-OBB collision just today, where some edges weren't detected as colliding), there aren't as many resources about collision detection algorithms in 3D on internet as I thought when I started, your implementation looks really sick! Congrats!

    • @SethBling
      @SethBling  3 місяці тому +192

      Definitely look up the separating axis theorem and minimum translation vector, that's what finally made everything click for me.

    • @NTSHOni
      @NTSHOni 3 місяці тому +17

      @@SethBling Yes I'm also using SAT. To get the colliding points, I'm using the method described in Game Physics Cookbook by Gabor Szauer, where you clip each boxA's edges to boxB's planes and vice-versa, didn't know about minimum translation vector so I will look into it though, thanks!

  • @ferventblack
    @ferventblack 3 місяці тому +226

    Your outro gives me nostalgia from watching your videos 11 years ago. I'm glad it hasn't changed.

  • @Zeragamba
    @Zeragamba 3 місяці тому +791

    0:09 "I saved copies of the datapack as i worked on it"
    > Sees endless folders of old versions
    > Me: *Screams internally*

    • @triffnix
      @triffnix 3 місяці тому +256

      cries in git

    • @erich_ika
      @erich_ika 3 місяці тому +92

      more like, git good
      edit: gotta respect how sethbling commited to it

    • @Nightcaat
      @Nightcaat 3 місяці тому +2

      There’s no way he doesn’t know about Git right
      Edit: I just checked the last vid, he’s on GitHub. Is he trolling 😭

    • @TheosTechTime
      @TheosTechTime 3 місяці тому +16

      Git is good _but you don’t need git_

    • @luna010
      @luna010 3 місяці тому +41

      @@TheosTechTime the only time you dont need git is when you're using SVN or mercurial or some other less popular version control software

  • @CraftyMasterman
    @CraftyMasterman 3 місяці тому +1714

    Didn't think mc physics would involve so much... Penetration

    • @SethBling
      @SethBling  3 місяці тому +1532

      Good penetration mechanics are crucial if you want to get really physical.

    • @niko5008
      @niko5008 3 місяці тому +1

      ​@@SethBlinggood penetration code in the one you can finish slowly and surely.

    • @ultimateo621
      @ultimateo621 3 місяці тому +58

      @@SethBlingo:

    • @Howzieky
      @Howzieky 3 місяці тому +125

      Can't wait for Minecraft's Penetration Update

    • @arf101088
      @arf101088 3 місяці тому +94

      my childhood has been decimated.

  • @pesterenan
    @pesterenan 3 місяці тому +213

    I can't imagine the joy when you saw that the edge-edge colision was resolved. Impressive stuff!

    • @lememz
      @lememz 3 місяці тому +2

      cocoxixicoco

    • @MessyMasyn
      @MessyMasyn 3 місяці тому +10

      edging implemented

    • @Scratchfan321
      @Scratchfan321 3 місяці тому

      @@MessyMasyn edging implemented?🤨

    • @Skeke
      @Skeke 3 місяці тому +1

      I remember you from Jovem Nerd's KSP school lol

  • @ETORERIGO
    @ETORERIGO 3 місяці тому +332

    Your video about the minecraft physics engine got me even more interested in physics, Thanks!

    • @ruzgar1372
      @ruzgar1372 3 місяці тому +11

      I'm honestly just baffled as to how something like this was coded into Minecraft using only in-game commands.

  • @pvic6959
    @pvic6959 3 місяці тому +94

    6 weeks for this is insanely impressive

    • @jaskaranmehta8715
      @jaskaranmehta8715 2 місяці тому +1

      yes, why is nobody talking about this

    • @tate9952
      @tate9952 2 місяці тому +1

      6 WEEKS???? wtf i assumed it took like 6 months at least

  • @Atombombz7
    @Atombombz7 3 місяці тому +134

    Mob ragdolls? 😮 loads of potential with this! Keep it up!

  • @shripperquats5872
    @shripperquats5872 3 місяці тому +15

    Of course it would be sethbling to develop something this insane. An old god awakening from his slumber to wreak magic on the minecraft plane.

  • @Cats-TM
    @Cats-TM 3 місяці тому +33

    Your ability to simply explain such complex things is absolutely incredible. So glad you are back.

  • @Praecantetia
    @Praecantetia 3 місяці тому +22

    You don't know the joy that the little "welcome back sethbling here" brings me

  • @scubastevedan
    @scubastevedan 3 місяці тому +26

    Whenever I watch this guy's videos it makes me feel like I'm back in 2011, And that makes me happy. Thank you @SethBling

  • @Laully
    @Laully 3 місяці тому +10

    You make me want to get back into programming, man. You make it sound too easy while I'm over here just knowing I'd give up immediately.

    • @cameron7374
      @cameron7374 3 місяці тому +9

      I mean, he makes it sound easy but that's partly because he managed to compress 6 weeks of work into 9 minutes of video.

  • @girres43
    @girres43 3 місяці тому +44

    the legend is back

  • @Frrk
    @Frrk 3 місяці тому +14

    Just imagine the math behind the scenes of ragdoll physics you see in other games. Pretty crazy.
    Super interesting video!

  • @Tenetri
    @Tenetri 3 місяці тому +45

    Still love your creativity Sethbling! Got the notification and dropped everything to come watch! :) Great video, love you man!

  • @OtakuG
    @OtakuG 3 місяці тому +246

    holy

    • @Back-Track
      @Back-Track 3 місяці тому +5

      hell

    • @XIIchiron78
      @XIIchiron78 3 місяці тому

      Me seeing this notification: WHAT YEAR IS IT

    • @skull_is_dull
      @skull_is_dull 3 місяці тому +4

      @@Back-Tracknew

    • @Vodboi
      @Vodboi 3 місяці тому +3

      @@skull_is_dullresponse

  • @benbower9510
    @benbower9510 3 місяці тому +20

    Seth, I watched my first video of yours when I was 6. THE LEGEND IS BACK!!!

  • @Microextent
    @Microextent 3 місяці тому +7

    im so happy you are still around doing minecraft things

  • @colbydoan2836
    @colbydoan2836 3 місяці тому +5

    It so happens that i was about to start implementing physics in my own (more traditional) game engine when you finished yours!
    Now i really cant wait to get started

  • @Joziah3
    @Joziah3 3 місяці тому +6

    I'm still in disbelief that my work-in-progress hitbox re-implementation with SAT was outshined by Sethbling. I thought you'd retired haha!
    Astounding work, I definitely need to download and reference this to see if I can figure out the problems I was having haha.

  • @efrandsen72
    @efrandsen72 3 місяці тому +2

    Can't wait to see the gravity gun

  • @Perrypool09
    @Perrypool09 3 місяці тому +181

    My jaw dropped when I saw this notification

    • @godminnette2
      @godminnette2 3 місяці тому +31

      You must have missed his last video!

    • @turolretar
      @turolretar 3 місяці тому +1

      Hey king you dropped this 💀

    • @1R4MgMYl7a
      @1R4MgMYl7a 2 місяці тому

      this guy's jaw dropped when he saw this notification

  • @coltynstone-lamontagne
    @coltynstone-lamontagne 3 місяці тому +1

    That's pretty sweet man. Love to see you back at it!

  • @Keatosis_Quohotos
    @Keatosis_Quohotos 3 місяці тому +4

    We're so back. I'm so happy to have Sethbling in my feed again

  • @ENDESGA
    @ENDESGA 3 місяці тому +3

    I'm so happy you're back with such informative videos, this is so good

  • @Plumpyfoo
    @Plumpyfoo 3 місяці тому +3

    Love your stuff dude

  • @idk-mg9rh
    @idk-mg9rh 3 місяці тому +6

    sethbling makes me so happy

  • @ValentineC137
    @ValentineC137 3 місяці тому +2

    6 weeks
    Man creates an entire physics engine in the time it takes me to start considering doing something

  • @contomo5710
    @contomo5710 3 місяці тому +1

    btw the collision particles are super nice for debugging, i think you could implement some more modes, one with debuggung with some really visible particles that highlight eges etc in different colors, and one where colliding parts spawn in smoke particles that fly away, like dust.

  • @gibbyfromicarlybestshow986
    @gibbyfromicarlybestshow986 3 місяці тому +6

    he's at it again, the madlad

  • @madtrippy56
    @madtrippy56 3 місяці тому +1

    I really enjoy it Seth!

  • @lamborn3D
    @lamborn3D 3 місяці тому

    Seeing you upload things done in Minecraft that I wouldn't have even thought possible again is very nostalgic.

  • @thechurchofsleep
    @thechurchofsleep 3 місяці тому +2

    Well done, with great effort comes great reward.

  • @MelonianEmperor
    @MelonianEmperor 3 місяці тому +7

    Welcome Seth, back is here

  • @Inspirator_AG112
    @Inspirator_AG112 3 місяці тому +4

    He may have been absent from his Minecraft content for years, but he came back with something cool.

  • @markm0000
    @markm0000 3 місяці тому +1

    I’m so glad you’re back 😊

  • @Nightcaat
    @Nightcaat 3 місяці тому

    Unbelievably happy to see you back

  • @nzbdv
    @nzbdv 3 місяці тому

    This is awesome
    I wish I could program and know math and physics like you

  • @dougowner
    @dougowner 3 місяці тому +3

    Seth is back, baby!

  • @sinkcat0113
    @sinkcat0113 3 місяці тому

    I haven’t watched you in so long seth! hearing your still using the same outro song hits so hard!

  • @Scorpionem
    @Scorpionem 3 місяці тому

    Great work !

  • @wonkywonky6307
    @wonkywonky6307 3 місяці тому

    Fantastic work.

  • @Dracstar
    @Dracstar 3 місяці тому

    Thanks for this! Super interesting

  • @delicate6930
    @delicate6930 3 місяці тому +1

    great vid!

  • @ScriptCoded
    @ScriptCoded 3 місяці тому

    You did this in 6 weeks? That's crazy, good job!

  • @HightimeSadness
    @HightimeSadness 3 місяці тому +4

    The Return Of The King

  • @cameronfoster5838
    @cameronfoster5838 3 місяці тому

    Love you sethbling!!!!

  • @gamingbutnotreally6077
    @gamingbutnotreally6077 3 місяці тому

    Amazing!

  • @Hyperion_100
    @Hyperion_100 3 місяці тому +1

    The prodigy returns!

  • @okpooka
    @okpooka 3 місяці тому +1

    cant describe the feeling i got hearing Kevin Macleod at the end

  • @monstandalone7339
    @monstandalone7339 3 місяці тому +1

    This is actually more solid than alike mods

  • @emnersonn
    @emnersonn 3 місяці тому

    i hope you know how many day’s you’re making by posting again. thank you seth :)

  • @aPumpkn
    @aPumpkn 3 місяці тому

    Every new video you blow my mind.

  • @Howzieky
    @Howzieky 3 місяці тому

    This is insanely cool. How difficult would it be to add joints between cubes? Fixed joints and rotating joints would be really cool to see. I'd also be interested in seeing non cubic physics boxes

  • @bobbybuckley2346
    @bobbybuckley2346 3 місяці тому +2

    hes back 💯

  • @CreatorofSecks
    @CreatorofSecks 3 місяці тому +2

    Sweet
    Now add the gravity gun

  • @Caffin8tor
    @Caffin8tor 3 місяці тому

    Well this certainly makes me appreciate the physics engine recently implemented into the Create mod.

  • @DJTRM
    @DJTRM 3 місяці тому

    SethBling is back
    ive missed your videos man

  • @indigoaway6
    @indigoaway6 3 місяці тому

    hell yeah! this is sick.

  • @robo1540
    @robo1540 3 місяці тому +1

    if you could add block dust particles where the cube collides with the world that would be really cool, maybe have the amount and velocity of particles be based on the velocity of the physics cube
    EDIT: maybe even add sounds where the volume coresponds to velocity and the pitch corresponds to either velocity or size of the physics cube

  • @DavidStapley0982
    @DavidStapley0982 3 місяці тому

    Good lord this is awesome.

  • @607
    @607 3 місяці тому +1

    Very, very cool.

  • @crowickedone4037
    @crowickedone4037 3 місяці тому +1

    BY GOD YOU ARE ALIVE

  • @origamihawk
    @origamihawk 3 місяці тому

    hearing quaternions mentioned again gave me some scary flashbacks to past projects

  • @CatzHoek
    @CatzHoek 3 місяці тому +1

    UA-cam Videos? Minecraft ones? Are you sick?
    Welcome back :D

  • @bananatassium7009
    @bananatassium7009 3 місяці тому

    awesome!

  • @xxthelinkxx3296
    @xxthelinkxx3296 3 місяці тому +1

    He is so back

  • @lightningvini
    @lightningvini 3 місяці тому +1

    I like your funny words, magic man

  • @waffling0
    @waffling0 3 місяці тому

    sethbling the goat returns

  • @cupofdirtfordinner
    @cupofdirtfordinner 3 місяці тому +5

    I cant wait for you to keep up with this new biweekly upload schedule!

  • @SSAFI2024
    @SSAFI2024 3 місяці тому +1

    I love your videos, you are the best❤❤❤😇😊

  • @iiPrr
    @iiPrr 3 місяці тому

    Almost teared up hearing “welcome back Sethbling here” 😢

  • @wulfens8891
    @wulfens8891 2 місяці тому

    Great! Just Great!

  • @caidencollins7696
    @caidencollins7696 3 місяці тому

    holy shit he's back

  • @williamist
    @williamist 3 місяці тому +1

    i love you sethbling

  • @EPICMAN10
    @EPICMAN10 3 місяці тому

    The king returns

  • @baseballjustin5
    @baseballjustin5 3 місяці тому

    If you want some fun Physics and Math videos, I suggest "Animation vs Math" (And "Vs Physics") by Alan Becker.
    very fun "basic" representations into Math and Physics concepts. It goes very deep, but walks you through it fairly well.

  • @gibberishdump1610
    @gibberishdump1610 3 місяці тому

    Legend

  • @zacharyive1411
    @zacharyive1411 3 місяці тому +1

    3:28 debugging errors from textbooks is second only to errors in the language itself

  • @McNibbler
    @McNibbler 3 місяці тому

    Return of the GOAT

  • @ChevronQ
    @ChevronQ 3 місяці тому

    welcome back, Sethbling. Here on youtube. ❤️

  • @ObjectGuy
    @ObjectGuy 3 місяці тому

    This is epic

  • @jonathanward2527
    @jonathanward2527 3 місяці тому +4

    You're incredibly smart! I wouldn't even know where to begin trying to make something like that.

    • @SethBling
      @SethBling  3 місяці тому +22

      It's important to realize that I didn't either. That's why I read a text book. No one is born knowing how to write a physics engine!

  • @krypticreality1485
    @krypticreality1485 3 місяці тому

    Now you need to create density for each object!!

  • @WriggleNightbug
    @WriggleNightbug 3 місяці тому

    hope you stay man

  • @cyberjoel
    @cyberjoel 3 місяці тому

    I was watching your vids yesterday then you pull this. Omg wb

  • @purplepeak8575
    @purplepeak8575 3 місяці тому

    HE'S BACK!!!!

  • @shakydotexe6574
    @shakydotexe6574 3 місяці тому

    HES BACK!!!!

  • @LineOfThy
    @LineOfThy 3 місяці тому

    Impressive :0

  • @rilltan
    @rilltan 3 місяці тому

    this is epic

  • @darkcode404
    @darkcode404 3 місяці тому

    The outro is strangly nostalgic

  • @Samstercraft77
    @Samstercraft77 3 місяці тому

    i have no words

  • @NiaSwift
    @NiaSwift 3 місяці тому

    I didn't understand anything but I still enjoyed watching!

  • @boas_
    @boas_ 3 місяці тому +3

    Ah that is so frustrating if it is an error in the book you are using!

  • @2oux
    @2oux 3 місяці тому

    actually wild

  • @Nighman709
    @Nighman709 3 місяці тому

    sick

  • @AlmondChocolateMilk
    @AlmondChocolateMilk 3 місяці тому +1

    WELCOME BACK SETHBLING (here)

  • @Luka_Pix
    @Luka_Pix 3 місяці тому

    we missed you.

  • @afmetz
    @afmetz 3 місяці тому

    imagine if we could step on top of them, would be soo cool