I Coded a Nuclear Physics Simulator to Play God in VR

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 595

  • @ThomasWaldYT
    @ThomasWaldYT  Месяц назад +290

    I'm trying out a different editing style compared to my previous videos; all suggestions & criticisms appreciated!
    Would you prefer:
    - More/less editing?
    - Longer/shorter?
    - Less process of making it / more pretty animations of the end result?
    Let me know your thoughts!
    Edit: Thanks to everyone who's left feedback so far! As many have pointed out, there are a million ways in which this sim falls short as a true model of reality. I'll be returning to this project in the future to attempt to incorporate more accurate physics.
    Aside from that, this video has already gotten way more attention than I ever anticipated, but I'm happy to see people engaging with it. The best is yet to come!

    • @MrDeepSleep22
      @MrDeepSleep22 29 дней назад +9

      i like the 3 leinght types,
      10 min or less simpler topic
      15/20min most likely to pick in a feed to watch
      40+ lil risky but from time to time can be true gems
      by my understaning of the alg..
      glad if it helps!

    • @MrDeepSleep22
      @MrDeepSleep22 29 дней назад +8

      so 15/20min 60% of the time i think is cool, editing and jokes are on point, the classical music is the cherry on top, peace!

    • @AquaComputerVR
      @AquaComputerVR 29 дней назад +7

      It's fine how it is. No changes; you found the best middle point.

    • @Arkxem
      @Arkxem 29 дней назад +5

      whatever style this is, keep it up.

    • @komi3010
      @komi3010 29 дней назад +1

      I think this style of editing is perfect, I love underrated channels like yours

  • @whomidity3953
    @whomidity3953 28 дней назад +2390

    Oh boy i can't wait to watch him slowly realize you can't just "ignore quantum physics" when it comes to recreating fundamental particles and watch him slowly lose his mind over weird definitions, wave functions, and literal unsolved phenomena

    • @zeynaviegas
      @zeynaviegas 27 дней назад +105

      @@whomidity3953 and when he tries to put relativity in the mix? the quantum stuff + the relativity stuff lol

    • @lightningbmw2309
      @lightningbmw2309 27 дней назад +59

      well actually you totally can ignore quantum physics, because the whole concept of it is trying to fill in what happens to particles while they arent interacting with something. unless he wanted to observe the wave properties of light at a macroscopic scale - which would require him to simulate billions of wave-particles - then it doesnt matter at all.

    • @damprat141
      @damprat141 27 дней назад +2

      ​@lightningbmw2309 actual iterator discussion threads right here

    • @pacocaapps6775
      @pacocaapps6775 27 дней назад +72

      ​@lightningbmw2309 You Actually cant, you need the quantum mechanics at least to form stable atoms ( unless you ignore Maxwell's equations). To actually model interactions you need qft

    • @lightningbmw2309
      @lightningbmw2309 27 дней назад +18

      @@pacocaapps6775 I mean he could totally just make the electrons follow a rigid set of rules when orbiting, and just implement all of the results instead of the actual mechanics that allow it to happen. He seems to have made the whole code particle and force based, so it is quite impossible for him to make anything quantum without starting back from scratch.

  • @thehexagon_yt
    @thehexagon_yt 28 дней назад +828

    The amount of wrong physics in this video is so fascinating, it actually is fun

    • @zeynaviegas
      @zeynaviegas 27 дней назад +25

      @@thehexagon_yt i think this can used in classes for a good discussion

    • @NeroDefogger
      @NeroDefogger 27 дней назад +2

      yeah right

    • @thebush6077
      @thebush6077 19 дней назад +55

      Tbh I think this is more of entertainment than anything. More accurate simulations already exist, this is just a dude having some fun making a rough approximation and nothing's wrong with that lol

    • @Il_panda
      @Il_panda 8 часов назад

      Erm you are not using the correct formula for collapsing the wave function 🤓🤓🤓🤓

  • @jupitersky
    @jupitersky 28 дней назад +837

    "Because here we embrace the future"
    _Promptly wastes 30 hours thanks to the "future"_

    • @ordinaryfellow9093
      @ordinaryfellow9093 24 дня назад +26

      The future seems incredibly bleak

    • @wexabite2425
      @wexabite2425 2 дня назад

      I'm all for using chatGPT to solve a problem you can't fix yourself or implement known algorithms, but my god.

  • @L3R4T
    @L3R4T 27 дней назад +628

    Man slowly discovers why quantum is very important in nuclear phyisics

  • @gecogameryt5878
    @gecogameryt5878 29 дней назад +1510

    funny thing is some of the bugs he was finding remind me of actual weird phenomenon that were found in quantum physics

    • @HalloGaming
      @HalloGaming 28 дней назад +326

      Yeah like the electrons not orbiting around two atoms when theirs more than 3 electrons and then them orbiting further away has to do with the electron shell... I think bro just made an accurate quantum simulation 💀

    • @b0r0din988
      @b0r0din988 27 дней назад +132

      Makes you wonder if some of this stuff, like quantum entanglement, are just bugs in the code of the universe.

    • @PersistentDissenter
      @PersistentDissenter 26 дней назад +47

      Quantum Theory is just unintuitive, not inexplicable.

    • @dang-x3n0t1ct
      @dang-x3n0t1ct 25 дней назад +43

      ​@@b0r0din988 quantum properties are features, the fact that you can't intuitive them is a user error

    • @thatcatthatalwayseatsyourchees
      @thatcatthatalwayseatsyourchees 25 дней назад +13

      so he liteally made quantum mechanics by breaking classical mechanics

  • @tvoklov
    @tvoklov 29 дней назад +505

    “okay, let’s implement this fix” *tells chatgpt to implement the fix*

  • @algorithmblessedboy4831
    @algorithmblessedboy4831 14 дней назад +105

    bro didn't update his atomic model to Schrodinger's and is still using Bohr's deprecated libraries

  • @mao_zhu_xi
    @mao_zhu_xi 21 день назад +87

    "This formation seems pretty stable
    *shows a hydrogen atom with three neutrons*

  • @diegofloor
    @diegofloor 29 дней назад +478

    Physicist here. I have to say, I wasn't too optimistic about this for a while lol. But I'm glad I stuck around til the end! that looks really cool.

    • @MScienceCat2851
      @MScienceCat2851 29 дней назад +4

      What degree have you done?

    • @zeynaviegas
      @zeynaviegas 29 дней назад +36

      he basically stripped the physics out of physics, and only worked with the formulas lmao 🤣 no wonder things broke so fast

    • @racoons3645
      @racoons3645 28 дней назад +3

      Thank you for saying that, made me stick around too and it was worth it. Made me wonder why electrons don't in fact collide with protons irl

    • @thehexagon_yt
      @thehexagon_yt 27 дней назад +9

      @@racoons3645 because they aren't just small spheres like in his simulation

    • @delphicdescant
      @delphicdescant 27 дней назад +25

      As someone with a physics degree too, I actually thought that the sheer number of times he neglected some force or other makes him fit in quite well with the physics community.

  • @icevlad148
    @icevlad148 21 день назад +41

    This video reminds of the joke about programming with AI
    Coding takes me about five hours and then debugging takes another four. But now, thanks to Chat GPT, I can code in just 3 minutes and debug in just 3 days!

  • @gcewing
    @gcewing 27 дней назад +155

    The reason a clump of neutrons isn't stable has to do with quantum energy levels in the nucleus, and the fact that the weak nuclear force allows neutrons to turn into protons and vice versa. In real life, about half the neutrons would quickly turn into protons via beta decay until the energy of the nucleus was minimised.

  • @kiryonnakira7566
    @kiryonnakira7566 29 дней назад +120

    If there cannot be more than one god, then this god cannot be a MonoBehaviour unless you instantiate it. In which case it's an existing being and not a force. We learn everyday.

  • @jfht318
    @jfht318 29 дней назад +283

    My brother , there is no such thing as proton radius. Infact, there is no such thing as radius. All particles are probability waves in a space time soup.

    • @jackbrand4507
      @jackbrand4507 28 дней назад +55

      It's a good enough approximation for protons and neutrons, especially for the purposes of building a sandbox like in this video. I agree that it's a much worse approximation for electrons, though.

    • @NeroDefogger
      @NeroDefogger 27 дней назад +5

      the last sentence is not true but everything else is

    • @damprat141
      @damprat141 27 дней назад +8

      ​@@jackbrand4507 We have literally already coded and made models of the "probability clouds"of particles at this scale, so it wouldn't have been too hard to literally just take the average of the cloud chart and convert them to vector points for a model, then just take it's radius

    • @jackbrand4507
      @jackbrand4507 27 дней назад +3

      @@damprat141 Fair enough. An issue with that is you will have to store the position distribution (cloud chart) of each energy eigenstate of the free electron and proton (the neutron will be practically the same as the proton), and assign each particle a cloud based on how much kinetic energy it has. You will then have to update this each time the particle's energy changes. There are infinite excited states, so you will have to create an upper energy limit. Additionally, the interactions between free particles will create new energy eigenstates that have their own unique clouds, so you will have to store these as well, and clamp particles to certain eigenstates based on how close they are to other particles and which "particle group" they are in (eg. two protons and two neutrons forming an alpha particle). Now that I type this, it does actually sound do-able.

    • @andrewkvk1707
      @andrewkvk1707 20 дней назад +7

      You can give your particles a non-defined radius if you ever decide to be the god of a universe. Don't backseat divine his universe.

  • @fonsworththethird
    @fonsworththethird 27 дней назад +311

    if god is real. imagining god doing this for like 1 bllion years and being like “FUCK WHY ARE THEY HALFWAY ACROSS THE UNIVERSE!” and “HOW ARE ALL THE ELECTRONS IN THE FOURTH DIMENSION”

    • @AnasKG2063
      @AnasKG2063 25 дней назад +11

      Well.. God is supposedly All powerful and All knowing. So no bugs occur for God.

    • @thegreatanonymous1430
      @thegreatanonymous1430 24 дня назад +36

      @@AnasKG2063just because he knows it’ll happen does make it any less irritating for him

    • @elmicroscopiodelosprimos2238
      @elmicroscopiodelosprimos2238 24 дня назад +3

      Also dont interpret god saying the F-word, god would never say the f-word, this is the word from a fellow christian, have a good day

    • @fonsworththethird
      @fonsworththethird 24 дня назад +23

      @ i am not christian, as you can tell by me saying “if god is real”, but of course, why wouldnt god swear?

    • @QuasiCosmiX
      @QuasiCosmiX 24 дня назад +10

      @@fonsworththethirdcause he’s amazing and *totally* never does anything bad? idk Im not Christian

  • @newstreak
    @newstreak 20 дней назад +66

    24:44
    “You would think just a bunch of neutrons would be stable wouldn’t you”
    my brother in christ do you know what a radioisotope is?

  • @jackbrand4507
    @jackbrand4507 28 дней назад +76

    Suggestion: Replace the electrostatic force with the Lorentz force, which combines the electrostatic and magnetic forces. You may have to program some numerical integration in order to solve Maxwell's equations at each time step, since the electric and magnetic fields are coupled by differential equations. But, I think it will be worth it, since you may currently be losing a lot of phenomena by not including the magnetic force.

  • @nimrag659
    @nimrag659 29 дней назад +495

    chatgpt really did a good job making this!

    • @_PapstFranziskus_
      @_PapstFranziskus_ 27 дней назад +1

      @Hi-pk5mf Guten Tag mr.lila

    • @Radiance_alpha
      @Radiance_alpha 27 дней назад +2

      @@_PapstFranziskus_ The boy tag mr lila
      idk if tag means something in norwegion ive only been practicing for like 20 days

    • @MyriadMind1
      @MyriadMind1 27 дней назад +5

      you use chat gpt and do the same thing then

    • @garrettbates2639
      @garrettbates2639 27 дней назад +2

      ​@@Radiance_alphaHann skrev på tysk, ikke norsk. Det betyr "god dag."

    • @Radiance_alpha
      @Radiance_alpha 26 дней назад

      @@garrettbates2639 idk what det means out of specific contexts, i think ive heard of ikke before but i cant remember what it means either because of skill issue or cuz i woke up 2 hours ago, but good afternoon.
      day 20 of duolingo lol

  • @zeynaviegas
    @zeynaviegas 29 дней назад +91

    i love how in the end he gave up trying to have electrons orbit so he just forced them. he did a bohr.
    its an interesting video... when you strip away the physics from the equations, you get weird stuff like that. i believe you can get better behaving systems if you respect the physics a little more.
    the first thing i notice, that it also made laugh, was you trying to grap the "electron radius"... because this doesn't sense in our current understanding of the electron, lol. You see, the size of something is determined by the volume in space that encloses what that things can interect with or not. But in the case of the electron, its volume of interactivity is not a fixed thing. it changes based on whats around it, whats interacting with it. in one case it can be a ball, but in other cases it can be a ballon-shaped, a flower, a ring with ballon - shaped. it can even be a sine wave-shape.
    then there is another problem.
    this shape cannot be precisely determined in fixed values without you loosing track of that electron, and, thus, changing its shape. for if you try and measure its radius, you have to know at which point interaction starts to happen, but as soon as it happens (its instant), the shape changes. you change the property of the mf by trying to measure it.
    i also found it funny you using Newton's laws to calculate 2 very quantum mechanical systems lmao. yes, the strong force does have this quality, which can be modeled by forces (you calculate the potential and take the negative gradient), but then you loose track of all the other Quantum stuff, such as tunneling, fluctuations, superposition, etc. like, nuclar decay happens ONLY because of tunneling. you can't get nuclear decays with newton's laws. if you think you have it, its because the particles had enough energy to decay. tunneling happens even if you don't have enough energy. it simply happens, you know? the strong force is just too strong.
    finnaly i also found it funny how you kept running into the problem of things going faster than light. in real life, when things approach light speed, their rate of passage of time changes, it increases, it takes literally longer for time to move, when compared to other. this happens at the time that their apparent lengths contracts, so the objects look smaller along the direction of travel. i dont quite know just how much that affects the interactions, but the most interesting thing about this is this phenomenon literally explains why we have magnets (look it up, go deep).
    nice vid, interested to see if you'll follow it up.

    • @ThomasWaldYT
      @ThomasWaldYT  28 дней назад +32

      Thanks for the tips! I will have to follow this project up with a more accurate version in the future for sure.

    • @zeynaviegas
      @zeynaviegas 28 дней назад +3

      @ThomasWaldYT oh please do! ill definitely watch it

    • @gcewing
      @gcewing 27 дней назад +6

      Also using the Newtonian formula for kinetic energy when particles are moving near the speed of light...

    • @zeynaviegas
      @zeynaviegas 27 дней назад +3

      @@gcewing i wonder if or how he will incorporate relativistic effects... the real momentum equation , for example, that actually govern collisions...
      in classical theory atoms can't even form yknow?

    • @gcewing
      @gcewing 27 дней назад +4

      @@zeynaviegas Yeah, that's the problem with these kinds of semi-classical simulations. Atoms and nuclei are highly quantum-mechanical objects, so you're never going to get the simulation to behave realistically without tackling the quantum effects head-on.

  • @bananabros7493
    @bananabros7493 Месяц назад +126

    at 4 am I watch these videos

  • @lolosharacarrot5507
    @lolosharacarrot5507 29 дней назад +55

    2:07 "We'll just round this off" 💀

    • @3RR0RNULL
      @3RR0RNULL 29 дней назад +1

      ???

    • @im_kas
      @im_kas 29 дней назад +11

      @@3RR0RNULLif you round constants... well... its not good

    • @3RR0RNULL
      @3RR0RNULL 29 дней назад +3

      @@im_kas Pi:
      Also, why? It’s not like it matters in a simulation game.

    • @NoenD_io
      @NoenD_io 28 дней назад

      Bro doesn't know ​@@3RR0RNULL

    • @L3R4T
      @L3R4T 27 дней назад

      ​@3RR0RNULL If you are doing something like making accurate physics in a game, rounding up can cause a lot of problems, nuclear physics require very accurate numbers because of how small atoms are, (irrational numbers are usually rounded up to the 7th-15th digit).

  • @jem5636
    @jem5636 13 дней назад +11

    Love how you start talking about how you love AI and every issue here is the exact reason I don't use it. If my program is bugged, I want it to at least be my own fault.
    Also those trails do look like photo rays! There's fog boxes to see radiation trails. Very fun.

  • @purzer5161
    @purzer5161 28 дней назад +54

    you gotta drop your dt, so many non-physical bandaid fixes when the real problem is just bad numerical integration

    • @jetison333
      @jetison333 27 дней назад +17

      Yeah, it was sort of upsetting watching him look at a nice stable simulation and go "hm this isnt exciting enough" and then crank the forces until everything was breaking 😭

  • @tigab37
    @tigab37 24 дня назад +23

    this is literally the type of project that inspired me as a youngin to got me started on my phd in computational chemistry!! I thought it would be more efficient to encode all of physics into a game engine than to arbitrary tell a barrel to explode and needed to find out why no one was doing it yet lol

    • @greatnate29
      @greatnate29 5 дней назад

      Oh that sounds so cool and difficult. It's probably useful for poorly understood steps in reactions or whatever. I don't know much about chemistry but I'm sure you must have to do some weird programming optimizations to get good performance for your simulations. How is it going?

  • @grusio_der_kosmonaut
    @grusio_der_kosmonaut 6 дней назад +2

    The laws of physics were absolutely VIOLATED in this simulation

  • @AwTickStick
    @AwTickStick 27 дней назад +10

    I got so hyped when I saw the two hydrogen atoms form a covalent bond.

  • @TrentSterling
    @TrentSterling 29 дней назад +58

    Apparently ChatGPT is a good teacher for compute shaders!

    • @felixstrider
      @felixstrider 26 дней назад

      well, a whole section of machine learning science focuses specifically on them so

    • @Pepo..
      @Pepo.. 19 дней назад

      i mean... that's what nvidia uses for their "fake" frames on heavy hungry RTX games

    • @amyshaw893
      @amyshaw893 11 дней назад +3

      Not really... Did they actually learn anything, or were they just given a load of code they didn't understand?

  • @Evan-hm7tz
    @Evan-hm7tz 28 дней назад +14

    I think an accurate simulation of this to play around with would be so god damn cool, but the fact that you got this cartoonish version working like this is also really cool, and i love it

  • @10buy10
    @10buy10 29 дней назад +38

    Absolutely love this, it’s so sick! I have some suggestions, if you don’t mind:
    1. Manually continuously variable universe size
    2. Manually continuously variable scale (aka by increasing the scale, it makes everything smaller while making the universe bigger and your own movement faster, and vice versa)
    Also, gravity isn’t actually that strong, so if you made it weaker, it might result in the atoms individually acting with less regard for it, while collective bodies experience it more and behave more like we see celestial bodies behave irl

    • @OkartaSamuel
      @OkartaSamuel 29 дней назад +4

      would love to see these changes, hopefully he sees it!

    • @Pepo..
      @Pepo.. 19 дней назад +1

      variable scale would just make the atomic theory lol

  • @unusualfabrication9937
    @unusualfabrication9937 25 дней назад +6

    Watching this knowing even like a surface level amount of physics is so hilarious because it just doesn’t make any sense

  • @C0D3-0R-D13
    @C0D3-0R-D13 13 дней назад +3

    I've started learning programming recently and good god dude, this unfathomable to me, I mean I can fathom it because I watched, but GOOD GOD this is insane, subbed

  • @TBNRWill2
    @TBNRWill2 13 дней назад +5

    Man, I am just VIBING to that vivaldi in the background. Nice music choice :)

  • @nsa1905
    @nsa1905 5 дней назад +2

    I don't know how to code, I don't know much about physics, it is 2am and this is video just hits all the right spots. I don't know why but I could watch you do this for hours. (and the music is great)

  • @NPCNo-xm2li
    @NPCNo-xm2li 4 дня назад +1

    Hearing the "We will be skipping all the quantum mumbo jumbo" while actively preparing for exam on quantum chemistry broke me on fundamental level.

  • @Juss_Chillin
    @Juss_Chillin 27 дней назад +91

    Cool but the title should be: "ChatGPT Coded a Nuclear Physics Simulator to Play God in VR"

    • @mickys8065
      @mickys8065 27 дней назад

      cry harder

    • @kadephillips576
      @kadephillips576 18 дней назад +5

      If you have any experience with gpt coding you would know that gpt is not very good at all at original concepts, but is great at adding simply modifications to your code. So for example it could have in a million years write this code alone, but if you give it the full skeleton, muscle skin and some other stuff it might be able to add the stomach, or make the skin function properly. It’s like a research assistant, doing the menial tasks that are minuscule next to the larger theoretical picture.

    • @Juss_Chillin
      @Juss_Chillin 17 дней назад +6

      @kadephillips576 I get it, yeah. This argument is exactly why people may tend to use it. But it doesn't quite fit my original comment and the problem I saw with the video. I do have a lot of experience with coding and know very well how and in which situations ChatGPT can assist the programmer. And this usage (in the video) is not one of them. You said ChatGPT can be really helpful if you give it enough structure / additional context to the specific problem. But this only holds (and also just kinda) true, as long as the surrounding code and context isn't also generated by ChatGPT. And this is the case in the video and what I wanted to criticize. He didn't use it to assist him every once in a while for boilerplate or that kinda stuff, he used it almost exclusively instead of quickly coding the things himself and rather spent the time fixing the (because of the also ai generated context-code) shitty output produced by ChatGPT. Not to mention that ai today, although it may seem impressive at first, is not at all good at generating code in the first place. You can really see that in the video too. In the same way that image generation ai may hallucinate some extra fingers or wierd random shapes, code generation ai often does the exact same thing with countless nonsensical and not needed statements in disguise.
      So: Using ChatGPT isn't actually good no matter how you put it, does not give off the sign of being a good programmer and yet, this precisely is what the video does/shows. This is what I criticized.

    • @kadephillips576
      @kadephillips576 17 дней назад +4

      @ very fair. On that front I agree. It’s important to understand your code enough to debug it yourself. The generate code and plug it back in and regenerate and plug back in is not always an effective strategy.

    • @Juss_Chillin
      @Juss_Chillin 17 дней назад

      @@kadephillips576 🤝

  • @Solocase
    @Solocase 24 дня назад +5

    This is like genuinely one of the best videos I’ve been recommended lately. Probably because I both enjoy coding and physics but the editing and flow is also phenomenal

  • @drdca8263
    @drdca8263 29 дней назад +37

    4:24 : gravity? I don’t think gravity plays a non-negligible role in an atomic nucleus, with the exception of neutron stars
    5:21 : ah, so your universe is RP^3 shaped, cool.
    7:03 : I really would prefer if people reserved “exponentially” for c^x , and didn’t describe things that increase quadratically (x^2) as “increasing exponentially”.

    • @zeynaviegas
      @zeynaviegas 29 дней назад +1

      but its not quadratic as well lol its 1/r²

    • @drdca8263
      @drdca8263 28 дней назад +2

      @ quadratic in (1/r) though

    • @stellarx20
      @stellarx20 24 дня назад +2

      I hate it when people say "It's not exponential because it isn't exactly m^n" when in general, exponential just means it increases more and more, not that specific function (which I wish wasn't just called 'exponential' because again, outside of a specifically mathematical context it just means that it's more than linear)

    • @drdca8263
      @drdca8263 24 дня назад

      @@stellarx20 I think the word “exponent”, and so “exponential”, originated in mathematics? Etymology online says that the earliest use of “exponent” is the mathematical one.

    • @spitgorge2021
      @spitgorge2021 24 дня назад

      @@drdca8263 it doesn't matter though. semantics are dumb.

  • @Spooky90097
    @Spooky90097 21 день назад +4

    ChatGPT coded a nuclear physics simulator to play god in vr.

  • @vk8a8
    @vk8a8 29 дней назад +136

    > "I coded"
    > look inside
    > chatgpt

    • @snugpig
      @snugpig 28 дней назад +14

      well the alternate is stack overflow

    • @vk8a8
      @vk8a8 28 дней назад +22

      @snugpig and knowing how to code instead of relying on a horrible excuse for a machine to do it for you

    • @crimmerz2000
      @crimmerz2000 28 дней назад +19

      Well the alternative is asking mediocre programmers like you on stack overflow. But on another note it is annoying how instead of seeing the writing process we just see him copy pasting chatgpt lmao

    • @vk8a8
      @vk8a8 28 дней назад

      @@crimmerz2000 I dont think you get it. chatgpt gets its data from the internet. so a lot of its responses to questions are going to be _from stack overflow_. chatgpt is only as good as its input data; mediocre in, mediocre out. plus, you wont even need stack overflow a lot of the time if you're actually a _good programmer that reads the goddamn documentaion_. god.

    • @vk8a8
      @vk8a8 28 дней назад +27

      @@crimmerz2000 i don't think you get it. chatgpt gets its data from the internet, so most of its responses to questions are going to be *from stack overflow.* so the quality is going to be the same, if not worse; garbage in, garbage out. plus, you won’t actually _need_ stack overflow or chatgpt that often if you’re actually *a GOOD programmer* that *reads the goddamn documentation.* god.

  • @rosettaroberts8053
    @rosettaroberts8053 28 дней назад +28

    With your circle wrapping around, it's topologically not a torus. For a topological torus you want a square wrapping around.
    With your circle wrapping around, i think it is topologically a projective plane (something that is halfway between a klein bottle and a torus). It might be a kline bottle tho. I'm not completely sure.

    • @nuke_clear
      @nuke_clear 14 дней назад

      Isn't it just a 2-sphere?

    • @rosettaroberts8053
      @rosettaroberts8053 14 дней назад

      @nuke_clear no. If you take something from the center, cross the boundary, then return to the center, it will have become mirrored. That isn't possible on a 2-sphere or a torus.

  • @syborgcat3830
    @syborgcat3830 20 дней назад +3

    5:03 flat earthers trying to explain how we can’t fall off the disk

  • @atrumluminarium
    @atrumluminarium 15 дней назад +3

    You need to include quantum effects my guy. A lot of phenomena are more rare IRL than in your sim because they require the particles to tunnel through potentials rather than have enough energy to overcome them.

  • @GastropodGaming2006
    @GastropodGaming2006 13 дней назад +1

    Electrons being in random ass spots works so perfectly to explain an electron field

  • @war_fish
    @war_fish 22 дня назад +8

    ok so, neutrons do not interact with electrons as they dont have any charge, neutrons and protons only interact and bind because of strong nucleus force, and electrons are not effected by this
    anyway the strong force gets stronger the further away a proton gets from a neutron, and at a certain point it just repels them and thus they bind
    neutrons arent attracted to each other, neither are protons, protons repel eachother just like electrons repel eachother

  • @d4rkmn643
    @d4rkmn643 10 дней назад

    Actually goated video wtf. Loved the format and hope you make more like this!

  • @Napkino948
    @Napkino948 28 дней назад +3

    watching this video at 4AM really made it more immersive. i regret not sleeping though, i cant lie

  • @Gustavo_Forbes
    @Gustavo_Forbes Месяц назад +9

    31 views is less than I expected. Just keep up the good videos and your channel will blow up .

  • @toastyboye
    @toastyboye 27 дней назад +7

    THIS HAS TO BE THE BEST VIDEO EVER
    If drawing something in MS Paint and immediately turning it into a 1 day unity project with feature creep was a contest, you'd be the winner. I've tried many times but failed, I bow to you

  • @SirMatthew
    @SirMatthew 26 дней назад +2

    Imagine how easy this would have been if you'd just wrote the program yourself

  • @FernandoZome
    @FernandoZome 29 дней назад +4

    I'm feeling like i just found a gemstone! I can see the subs count doing numbers when the algorithm catches you, as sinister it's sounds. Keep up!

  • @SpontaneousProcess
    @SpontaneousProcess 27 дней назад +9

    When you made the strong force length-dependent I chuckled to myself “yeah, I remember when I thought it made sense”.
    I hesitate to mention a fundamental flaw in how you’re simulating electrons: we cannot know both the position and momentum of any electron each with unlimited certainty. This becomes important for electron-electron interactions.

  • @nathanpfirman625
    @nathanpfirman625 16 дней назад +1

    Oh you sweet summer child. You cannot just ignore quantum physics…

  • @ntechstorm
    @ntechstorm 27 дней назад +8

    "I've done a bit of coding off camera" is the programmers equivalent of "I did a little mining off camera", if using ChatGPT was frowned upon

  • @lynnwilliam
    @lynnwilliam 6 дней назад

    I love how you program and I love your honesty. We have the exact same style

  • @impala831
    @impala831 День назад

    I love imagining the guy as god himself, and this is how the universe was created. Just some dude messing around

  • @thekiwithatplays
    @thekiwithatplays 28 дней назад +16

    float4, float3, and float2 are just the shader versions of Vector4, Vector3, and Vector2

  • @NerdGlasses256
    @NerdGlasses256 29 дней назад +60

    0:10 I'm more of a bottom, but I can be on top of you if you want to put me on UWU XD

    • @qu3sti0nuble
      @qu3sti0nuble 29 дней назад +18

      this joke is unbelievably dumb and i love it

    • @NerdGlasses256
      @NerdGlasses256 29 дней назад +10

      @qu3sti0nuble With tgis username, my bi ass just had to do it XD

    • @qu3sti0nuble
      @qu3sti0nuble 28 дней назад

      @@NerdGlasses256 RESPECT. my ass is bisexual as well

    • @BRY0402
      @BRY0402 27 дней назад +8

      This got me confused at first, but then I read your username right as he said "I gotta put on some nerd glasses." and you got a chuckle out of me.

    • @lordjaysie195
      @lordjaysie195 24 дня назад +1

      LOL

  • @BORCHLEO
    @BORCHLEO 24 дня назад +2

    this is amazing!! KEEP GOING I WANT TO SEE MORE THIS COULD BE VERY USEFUL.

  • @NaoP3
    @NaoP3 6 дней назад

    bro literally made a low-poly universe sandbox on the atomic level i love it

  • @litterbox019
    @litterbox019 8 дней назад +1

    31:33 optimal circle packing jumpscare

  • @blueberryjam7793
    @blueberryjam7793 25 дней назад +1

    i like the strategy of "figure out ways to make it kind of like how it would be ish through unconventional methods" instead of "look up exactly how it works and code that"

  • @ToastDotGif
    @ToastDotGif 4 дня назад

    this would be sick as a vr chat avatar or something, also this is the first video I have seen of yours and its really awesome! Love the editing style and how you break down the process.

  • @pedropesserl
    @pedropesserl 20 дней назад +2

    7:00 if the force is (inversely) proportional to distance *squared*, then as distance gets small the force increases *quadratically*, not exponentially.

  • @HouseofBricksStudios
    @HouseofBricksStudios 3 дня назад

    Please continue this, I want to see you go theoretically insane.

  • @jem5636
    @jem5636 13 дней назад +2

    Technically a more accurate way to program movement is to check how close a non-light particle is to the speed cap, and have applied velocities exponentially decrease in how much a particle's velocity is actually increased by, being multiplied by zero once an object reaches light speed. Not that they should ever get there, as the formula should decrease the speed by so much that non-photon objects can never reach light speed. Unfortunately this would require calculus to use without serious bugs. Also unfortunately I do not know the formula for this off the top of my head, but it's part of relativistic physics near the speed of light. (In the real world increases in velocity at near-light-speeds also decreases the amount of time experienced by an object, causing near-light objects to age slower. Oddly enough this means time stops for you at the speed of light. Quantum- and astro-physics are weird and awesome.)

  • @MasterOfChaosYT
    @MasterOfChaosYT 29 дней назад +13

    Cool video, look into the Barnes-Hut algorithm to to approximate some of the calculations so you can have wayyyyyy more particles.
    Not sure how it would be implemented in Unity though...

    • @ThomasWaldYT
      @ThomasWaldYT  28 дней назад +2

      The name is ringing a bell; I'll take a look.

  • @zackrythomas1856
    @zackrythomas1856 25 дней назад +1

    didn't realize you only had 1k subs. production value was great and the video was a fun watch

  • @TheLethallego
    @TheLethallego 9 дней назад

    independently discovering that you need a concept of momentum to make physics work at 33:10 was not on my bingo card for this video

  • @ScienceChild
    @ScienceChild 27 дней назад +1

    I was thinking about if somebody made a simulator game and I'm glad somebody went out and did it.

  • @greatnate29
    @greatnate29 5 дней назад +2

    Love the just copy and paste of large sections of code, from an obviously questionable source. Let me just add some more tape to my ball of tape.

  • @fivenights2161
    @fivenights2161 23 дня назад +1

    I can't wait until this eventually evolves into a life simulator of some kind, being able to literally make life via buildings the atoms over time

  • @magiguy7897
    @magiguy7897 3 дня назад

    I've always wanted to do this, haven't finished the video but I'm incredibly excited to see how this plays out

  • @flarpman5071
    @flarpman5071 25 дней назад +3

    You know, a great way to avoid having AI fuck your shit up is to not use it

  • @mrndnns0084
    @mrndnns0084 17 дней назад

    This editing style feels nearly perfectly tuned to my (admittedly odd) brain.
    I aspire to this level of competence in pretty much anything. You have an impressive mind.

  • @captheobbyist6434
    @captheobbyist6434 16 дней назад +1

    16:02 it's quantum tunneling guys in it's true form, but in 2d. they go to the third dimension to cross the wall.

  • @sovietunion8304
    @sovietunion8304 28 дней назад +1

    no idea why youtube recommended this to me but it was super fun so new subscriber gained

  • @that_fluff
    @that_fluff 18 дней назад +1

    oh man two minutes in wait till this guy learns how important QCD is

  • @crackedemerald4930
    @crackedemerald4930 10 дней назад

    adding gravity to a nuclear physics simulator seems like a recipe for floating point error nonsense

  • @micahroberts4900
    @micahroberts4900 28 дней назад +4

    I also hear that Claude Ai is realy good at working with code.

    • @yrurgrhhr
      @yrurgrhhr 15 дней назад +1

      claude 3.5 sonnet is literally better than gpt4o at everything

  • @jyxtheberzerking4824
    @jyxtheberzerking4824 12 дней назад

    fun fact, this is the exact set of circumstances that happened on day zero when God was still figuring out how to build the universe.

  • @jakethesnake2655
    @jakethesnake2655 День назад

    I feel your pain, on the rest of the code on changed, or placeholder, or just a small snippet. Drives me up the wall

  • @centarian2559
    @centarian2559 27 дней назад +4

    Particle physics simulation made by someone who doesn't understand particle physics

    • @nathon1942
      @nathon1942 18 дней назад

      to be fair he did a decent job

  • @redbloodednerd8181
    @redbloodednerd8181 25 дней назад +4

    bro coded 15% of this, and how is it a simulator if you ignore half of the physics that makes it work?

  • @ZariffsDev
    @ZariffsDev 16 дней назад

    "i coded all physics and a simulation of the big bang and billions of years in the future"

  • @CatinaboxReal
    @CatinaboxReal 2 дня назад

    did he just say... "we're not gonna worry about any sort of quantum physics uwu :3"

  • @Volcano22207
    @Volcano22207 11 дней назад

    Now you need to coda the probability clouds that fundamental particles actually consist of

  • @JaredQueiroz
    @JaredQueiroz 28 дней назад +1

    -Is not gonna be too complex...
    *said him, 2 years ago.....

  • @silv3rphant0m40
    @silv3rphant0m40 24 дня назад +1

    that one unemployed friend on a sunday

  • @lolosharacarrot5507
    @lolosharacarrot5507 29 дней назад +5

    I too at 4AM just decide to play god

  • @LevAlTru
    @LevAlTru 29 дней назад +5

    This looks incredible for a dude with ~90 subscribers

    • @pl-AEtheRR
      @pl-AEtheRR 29 дней назад +3

      I mean, did ChatGPT do most of the work.

    • @LevAlTru
      @LevAlTru 28 дней назад +1

      @pl-AEtheRR I'm mostly talking about the video editing

    • @Someone91160
      @Someone91160 18 дней назад +1

      @pl-AEtheRRMost is a exaggeration

  • @Iwan._
    @Iwan._ 11 дней назад

    Watching that while the new year begins and old ends

  • @jem5636
    @jem5636 13 дней назад

    The high-energy to low-energy photon is very realistic! The upper and lower bounds for photon emissions are much lower, and also atom dependent more than proton/neutron dependent, but you will see that kind of behavior all the time. It's why light can warm things up, for one.

  • @lanternenman
    @lanternenman 29 дней назад +12

    this video is incredible! unironically a great teaching example for what programming is like and how much of it is just constantly learning/digging through new things

  • @FlyinC4T
    @FlyinC4T 14 дней назад

    having a master's degree in telling the truth, is of a different level of degrees bro 😭😭

  • @teodordjuric6323
    @teodordjuric6323 20 дней назад

    this video is a testament to the fine tuning argument

    • @nathon1942
      @nathon1942 18 дней назад

      It directly disproves it.

  • @MultiLockedMusic
    @MultiLockedMusic 13 дней назад

    Splendid video, good sir! Subscription added, underrated channel. Good day!

  • @duck0a
    @duck0a 21 день назад

    Love your video. I've also wanted to work with atomic simulation for some time, and this made it easier!

  • @mustgreetor
    @mustgreetor 20 дней назад +2

    you did exactly what I want to do lol
    now I kinda want to make the code myself lol

  • @Sir_Yangchuanosaurus
    @Sir_Yangchuanosaurus 19 дней назад

    Found my video to watch tomorrow with a snack and drink

  • @hubinki
    @hubinki 20 дней назад

    I like to think that this is how the universe was made except god didn’t have any outer sources so it was just trial and error for quintillions of years