Coding Adventure: Solar System

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น • 2.3K

  • @saifors
    @saifors 4 ปีที่แล้ว +1822

    "Simulating erosion of a mountain": Wow that's neat
    "Simulating an ecosystem": Oh, that's pretty cool.
    "Simulating a Solar System": Wait, where is this going?

    • @MrRonny6
      @MrRonny6 4 ปีที่แล้ว +152

      Upwards. Really, really quickly

    • @ross9263
      @ross9263 4 ปีที่แล้ว +231

      "Becoming god by accidentally discovering the events that led to the big bang"

    • @APaleDot
      @APaleDot 4 ปีที่แล้ว +59

      No Man's Sky

    • @landon5030
      @landon5030 4 ปีที่แล้ว +57

      Spore 2

    • @TheR971
      @TheR971 4 ปีที่แล้ว +11

      No Man's Sky lol

  • @TonsOfHunStudios
    @TonsOfHunStudios 4 ปีที่แล้ว +1864

    Judging by what Sebastian thinks is ugly, it would be an honor if he called my art ugly :D Awesome work!

    • @MorgurEdits
      @MorgurEdits 4 ปีที่แล้ว +25

      Everything is relative ;P

    • @TonsOfHunStudios
      @TonsOfHunStudios 4 ปีที่แล้ว +3

      @@MorgurEdits ;P

    • @jambie
      @jambie 4 ปีที่แล้ว +29

      @Almost blank I think he meant when Sebastian called the spaceship ugly not the planets

    • @TonsOfHunStudios
      @TonsOfHunStudios 4 ปีที่แล้ว +4

      @@jambie You are right, thanks :)

    • @thedude4039
      @thedude4039 4 ปีที่แล้ว

      Tons Of Hun Studios He’s being humble.

  • @maxmuster2637
    @maxmuster2637 4 ปีที่แล้ว +2105

    Give this guy 20 more years and you will find "coding adventures: the matrix" in your feed

    • @Kokurorokuko
      @Kokurorokuko 4 ปีที่แล้ว +94

      Yo just make 2d array

    • @Zeus-fe3we
      @Zeus-fe3we 4 ปีที่แล้ว +18

      @@Kokurorokuko well he's not talking bout that Matrix

    • @Jaspinik
      @Jaspinik 4 ปีที่แล้ว +10

      If he wills, 1 is enough...

    • @gileee
      @gileee 4 ปีที่แล้ว +17

      @@Kokurorokuko And iterate over it and voila, we have agent Smith

    • @disrespecc9678
      @disrespecc9678 4 ปีที่แล้ว +2

      He should heart this comment, it’s absolutely amazing..and original. I love this

  • @ManuelDornbusch
    @ManuelDornbusch 4 ปีที่แล้ว +1643

    "“If you wish to make an apple pie from scratch, you must first invent the universe.”" - Carl Sagan

    • @okboing
      @okboing 4 ปีที่แล้ว +23

      One of my favorite quotes from carl

    • @moonman5819
      @moonman5819 4 ปีที่แล้ว +8

      I vaguely remember some Netflix show with Carl Sagan. Does anyone remember the name of it? It had him standing on the giant universal calendar

    • @TheInterestingInformer
      @TheInterestingInformer 4 ปีที่แล้ว +8

      Marinebiohazard cosmos

    • @moonman5819
      @moonman5819 4 ปีที่แล้ว +7

      The Interesting Informer, Thank you!!

    • @ilya8914
      @ilya8914 4 ปีที่แล้ว +16

      Was that a productive TH-cam reply section? A rare sight indeed.

  • @jhinius7689
    @jhinius7689 4 ปีที่แล้ว +855

    8:02 "I opened up blender and made a rather ugly space exploration vehicle"
    My attempt: *potato*

    • @okboing
      @okboing 4 ปีที่แล้ว +2

      As opposed to his nofeatures cylinder sub when it was first made

    • @alfiepearce23
      @alfiepearce23 4 ปีที่แล้ว

      Mine is just a holo cylinder

    • @dragontv9783
      @dragontv9783 4 ปีที่แล้ว

      better than a Kale leaf

    • @clankcc7410
      @clankcc7410 3 ปีที่แล้ว

      anshats your about page is soooo funny 😐

  • @Danidev
    @Danidev 4 ปีที่แล้ว +404

    This is really fascinating, the universe is really lit tbh

    • @niklas7133
      @niklas7133 4 ปีที่แล้ว +32

      Is it just me or does the Universe look THICC

    • @pixspaces4777
      @pixspaces4777 4 ปีที่แล้ว +15

      Dani the universe needs a 'milky wayy' care to join! Lol

    • @yvesbreidel5438
      @yvesbreidel5438 4 ปีที่แล้ว +11

      Try build an entire solar system..or you can't? jk... Unless?

    • @SebastianLague
      @SebastianLague  4 ปีที่แล้ว +57

      Thanks!

    • @Danidev
      @Danidev 4 ปีที่แล้ว +48

      @@SebastianLague keep up the great videos man, always love to see them!

  • @project_fakehim5378
    @project_fakehim5378 4 ปีที่แล้ว +93

    This was comfortable to watch. It's currently 2 am, the background was dark, brightness toned down and the planets were easily visible. Idk why I wrote this. This was just satisfying

    • @zyaicob
      @zyaicob 4 ปีที่แล้ว +2

      No i totally get you. This is really... nice

  • @christ7007
    @christ7007 4 ปีที่แล้ว +857

    2030 Coding Adventure: Entire Alternate Universe.

    • @serena_m_
      @serena_m_ 4 ปีที่แล้ว +7

      Coding Adventure's Sky

    • @zanderoneil3405
      @zanderoneil3405 4 ปีที่แล้ว +8

      2022: Galaxies
      2027: Galaxy Clusters

    • @Brenden-H
      @Brenden-H 4 ปีที่แล้ว

      but its procedural generated and has portals that lead to other universes

    • @MrBlack0950
      @MrBlack0950 4 ปีที่แล้ว

      I mean, if you got infinite time, its possible

    • @Brenden-H
      @Brenden-H 4 ปีที่แล้ว

      its a joke... he previously did coding adventures where he made portals and a procedural generated world.

  • @Jabrils
    @Jabrils 4 ปีที่แล้ว +1052

    Man I am so impatient for part 2 I came back to watch this again xD

    • @SebastianLague
      @SebastianLague  4 ปีที่แล้ว +226

      Haha thanks for this reminder to stop lazing about and get back to work!

    • @elnico5623
      @elnico5623 4 ปีที่แล้ว +52

      @@SebastianLague if you dont do it tomorrow i'll make my own solar system.. with black jack.. and hookers... you know what? Forget the solar system

    • @theothercreare
      @theothercreare 4 ปีที่แล้ว +4

      Same lol. I am making a space game and I don't know how to do LOD and stuff so I keep every week or so check back to see if anyone has a decent tutorial on how lod works.

    • @benjaminlong729
      @benjaminlong729 4 ปีที่แล้ว +3

      @@elnico5623 Bender?

    • @SemiMono
      @SemiMono 4 ปีที่แล้ว +1

      Ben Jammin and Benjamin Long, do you guys know each other or something?

  • @peterk1821
    @peterk1821 4 ปีที่แล้ว +979

    "One day they'll figure out that the sun is actually the center and its gonna make so much more sense" -- I spent way too long thinking about this

    • @okboing
      @okboing 4 ปีที่แล้ว +41

      Society in the1400s

    • @zapdragon5942
      @zapdragon5942 4 ปีที่แล้ว +50

      Yeah, but then the Church set fire to the guy who said that, so

    • @weckar
      @weckar 4 ปีที่แล้ว +16

      @@zapdragon5942 I mean, the dude actually worked for the church.

    • @OrdinaryLatvian
      @OrdinaryLatvian 4 ปีที่แล้ว +16

      @@zapdragon5942 No they didn't. I despise the catholic church but there's no need to lie about their actions. They were bad enough already.

    • @hedgehog3180
      @hedgehog3180 4 ปีที่แล้ว +10

      It's funny because it's actually those same apparent retrograde movements that clued us into the fact that the planets orbit the sun.

  • @grunch346
    @grunch346 4 ปีที่แล้ว +198

    Watching those planets twirl around each other was mesmerizing

    • @TheBelrick
      @TheBelrick 4 ปีที่แล้ว +8

      This video highlights how easy it is for NASA to see a deep space body and calculate with 100% accuracy whether it would hit the earth or not...

    • @you_just
      @you_just 4 ปีที่แล้ว +5

      Play Outer Wilds. If you like that sort of thing, you’ll love that game.

  • @covirtcat786
    @covirtcat786 4 ปีที่แล้ว +63

    The music accompaniement for the sphere “dances” was a really good idea

  • @Jabrils
    @Jabrils 4 ปีที่แล้ว +553

    Everytime I watch a Sebastian video, I feel like such a dunce. But I am so hyped to see you try this. I remember watching the Outter Wild's documentary, & when Alex mentioned his solution for fixing floating point precision was to move everything to the player, I almost fainted from how genius that was!

  • @spencerrawls970
    @spencerrawls970 4 ปีที่แล้ว +587

    "The engines don't move the ship at all. The ship stays where it is and the engines move the universe around it."

    • @halleyc6603
      @halleyc6603 4 ปีที่แล้ว +27

      Futurama 100.

    • @okboing
      @okboing 4 ปีที่แล้ว +42

      There are thrusters on everything in the universe except the vehicle.

    • @elektra81516
      @elektra81516 4 ปีที่แล้ว +28

      That's actually how floating point origins work

    • @okboing
      @okboing 4 ปีที่แล้ว +9

      @@elektra81516 exactly!

    • @halleyc6603
      @halleyc6603 4 ปีที่แล้ว +1

      @@okboing yep!!

  • @typryor2227
    @typryor2227 4 ปีที่แล้ว +181

    “Does your ship meet all the safety requirements?”
    “It has a fire extinguisher.”

    • @_erroneous
      @_erroneous 3 ปีที่แล้ว +9

      PASS, ITS FULLY SPACEFLIGHT CAPABLE

    • @ZachTheHuman
      @ZachTheHuman 3 ปีที่แล้ว +6

      I wonder if Wall-E just flew around semi-randomly for ever in space with a fire extinguisher, how long would it take for the fire-extinguisher stuff to create a planet (assuming the fire extinguisher has an infinite supply of stuff)? What would that planet be like? Could it stand up to an orbit around the sun?

    • @valentinmitterbauer4196
      @valentinmitterbauer4196 3 ปีที่แล้ว +7

      @@ZachTheHuman I know i come late to the party, but here are my thoughts anyway: Judging by his own size, Wall-E's extinguisher contains around 3 litres of compressed foam, which normally takes 10 sec. to empty, so 0.3l/sec. As soon as the foam will flock together it will release almost all of the air inside, leaving the water and tensides which will then regain the same volume as the compressed form. Assuming that the extinguisher magically regenerates the foam it looses, it would take 2,319,356,774,070,000 (2 sextillion) years to create a ball of water the size of the moon, but it wouldn't have as much gravity as the moon. Of course this assumes that no water evaporates from this body of water, which is unrealistic. It's water without foam, as the gas will have separated rather quickly, floating away, as this planet wouldn't have enough gravity to hold an atmosphere. It would literally be a ball of water, or rather ice, if it orbits further away from its sun. But it would have no problem with orbiting.

    • @ZachTheHuman
      @ZachTheHuman 3 ปีที่แล้ว +3

      @@valentinmitterbauer4196 Huh. Thanks, that was super cool, I wasn’t expecting anyone to really answer my question! Huge respect to you man. 🙌

  • @benjaminanderson1014
    @benjaminanderson1014 4 ปีที่แล้ว +373

    I was going to make a joke about him basically recreating outer wilds, then he said that's exactly what he was doing and I was like oh ok this makes a lot more sense now.

    • @milkywegian
      @milkywegian 4 ปีที่แล้ว +6

      Benjamin Anderson so, from now on every space game with orbital mechanics is outer wilds?

    • @erictheepic5019
      @erictheepic5019 4 ปีที่แล้ว +27

      @@milkywegian Well, the two binary planets closest to the star are also found in Outer Wilds, the second planet being a nice green one with a tiny moon is also true in Outer Wilds, a large planet with high gravity is also found in Outer Wilds (but that's pretty generic), and the ship design could fit right in with the rest of the ships found in Outer Wilds.That's everything I saw that screamed 'Outer Wilds' to me (before he revealed that it was based on Outer Wilds, of course).

    • @commenturthegreat2915
      @commenturthegreat2915 4 ปีที่แล้ว +8

      ​@@milkywegian Can you really not see the similarities? Did you play outer wilds?

    • @wkrisz
      @wkrisz 4 ปีที่แล้ว +2

      At first I was like "Oh it's like KSP" but it is true that Outer Wilds is more similar.

    • @captainjirk9564
      @captainjirk9564 4 ปีที่แล้ว

      Outer wilds doesn't really have orbital mechanics beyond the planets

  • @benjoe1993
    @benjoe1993 4 ปีที่แล้ว +334

    It's interesting how you encountered the physics precision problem just like the Outer Wilds people did :D
    They fixed it by disabling any velocity changes to the player and just add all the forces in the opposite direction to everything else in the entire world!
    (Edit: Corrected game name thanks to Gulli)

    • @Gulli03
      @Gulli03 4 ปีที่แล้ว +7

      It's "Outer Wilds" not "Outer Worlds"

    • @benjoe1993
      @benjoe1993 4 ปีที่แล้ว +11

      ​@@Gulli03 Ohh shoot! Thanks a lot. Corrected! I just watched a couple episodes of the Outer Worlds ./noclip documentation and that was stuck in my mind. :D

    • @squeakybunny2776
      @squeakybunny2776 4 ปีที่แล้ว +15

      So pretty much the same Sebastian did but in a continuous way instead of a discrete one

    • @DaedalusCommunity
      @DaedalusCommunity 4 ปีที่แล้ว +10

      They did the same treshold based recentering in Kerbal Space Program. That's because of floating point precision :) I had a different problem that I solved in the same way that you described, I was making a VR space thing, and when moving too fast the trigger collisions don't work very well. So I made the spaceship stay in the origin and applied the forces to everything else. It's causing a bit of problems with multiplayer, but I think I'll get to solve them soon!

    • @MartinJab
      @MartinJab 4 ปีที่แล้ว +16

      We use floating points, which means that the "point" "floats", so you can either have 9999,9 or 99,999 or 9,9999... as the number gets bigger, its precision gets smaller - if you get into bigger numbers (aka far from origin), everything "shakes" because you need bigger precission than you currently have.
      So, everyone encounters that problem.

  • @swagguy47
    @swagguy47 4 ปีที่แล้ว +144

    Here's an explanation of how they did the stars in Outer Wilds:
    The "stars" are actually just a particle system that follows the camera, the star particles are in a sphere shape around the camera. They set the particle system's layer to be in the back, behind all objects and UI in the world. Since they didnt move or rotate from your perspective it gives off the effect of stars really far away. A very interesting and effective way around the problem. You should apply it to your project!

    • @lifelover69
      @lifelover69 4 ปีที่แล้ว +6

      @Gek Badass cubemap is limited by being a texture, particle system is more flexible

    • @TWGuardian
      @TWGuardian 4 ปีที่แล้ว +10

      @Gek Badass Not necessarily. If you want crisp stars, you would need a very high resolution cubemap, which will take up a lot more memory. Using particles to creates stars makes them detailed regardless of texture resolution and CPU/GPU power, with low memory consumption as well. Instancing and batching can be used to increase performance drastically, surpassing using a cubemap to achieve equal detail.

    • @disrespecc9678
      @disrespecc9678 4 ปีที่แล้ว

      As a person learning ROBLOX dev this isn’t possible I think

    • @downey2294
      @downey2294 4 ปีที่แล้ว +1

      @@disrespecc9678 why would this not be possible?

    • @garrettrichards9028
      @garrettrichards9028 4 ปีที่แล้ว +1

      (Spoilers) Hmmm I wonder how they achieved the supernova then for each individual star, when you look at a star in the game you actually can see a bunch exploding, it's mentioned in one of the NPC's dialogue at the twin planets

  • @argore9709
    @argore9709 4 ปีที่แล้ว +608

    Coding Adventure:
    Solar System
    Clouds
    Hydraulic erosion
    Simulating an Ecosystem
    Procedural Moons
    Atmosphere
    Dude we don't need to replace the universe yet

    • @andrienw8847
      @andrienw8847 4 ปีที่แล้ว +63

      honestly with the amount of shit that has happened we might need to

    • @jtn191
      @jtn191 4 ปีที่แล้ว +34

      Have you seen ours lately?!

    • @abigsillay5226
      @abigsillay5226 4 ปีที่แล้ว +9

      Yet...

    • @Jutlantic
      @Jutlantic 4 ปีที่แล้ว +4

      YET

    • @asher-360
      @asher-360 4 ปีที่แล้ว +6

      look around you, yes we do

  • @ryanclapperton9449
    @ryanclapperton9449 4 ปีที่แล้ว +127

    Am I the only person who was startled when he hit the green planet and didn’t go through into a water world with tornados? Damn I love that game.

    • @SaadTheGlad
      @SaadTheGlad ปีที่แล้ว +4

      damn too me a sec too long

    • @sepiar7682
      @sepiar7682 ปีที่แล้ว +11

      @Blayne Bradley In the game this video was based on - Outer Wilds - there's a big green planet that has tons of tornadoes and is a water world. I would highly recommend the game, it's my favorite of all time! If you want more information, make sure you find a *spoiler free* review or something because the game's progression is soley based upon what you know, so spoilers literately skip chunks of the game for you.

    • @greencircle2063
      @greencircle2063 ปีที่แล้ว +1

      real

  • @drainbamage2542
    @drainbamage2542 4 ปีที่แล้ว +291

    In some future episode: So apparently the creatures are worshiping me as if I am god... Interesting

    • @drone_better7757
      @drone_better7757 4 ปีที่แล้ว +25

      'Unfortunately, I had to put this thing on hold while I focus on more interesting projects. Bye, bye, little creatures.'

    • @Music7Ada
      @Music7Ada 4 ปีที่แล้ว +14

      “Unfortunately that won’t make their lives easier”

    • @DrYoutubMAN
      @DrYoutubMAN 4 ปีที่แล้ว +1

      So the Big Bang was the start of the simulation

    • @okboing
      @okboing 4 ปีที่แล้ว +1

      @@DrYoutubMAN THEORY ALERT THEORY ALERT
      SEBASTIAN IS THE CREATOR OF THIS UNIVERSE AND ALSO PRETENDS TO BE A HUMAN TO SEEM LIKE NORMAL BUT REALLY SEBASTIAN IS GOD
      WOULD YOU CARE TO JOIN MY RELIGION

    • @alexandermcclure6185
      @alexandermcclure6185 4 หลายเดือนก่อน

      @@DrYoutubMAN Our whole universe was in a hot dense state-

  • @SamHogan
    @SamHogan 4 ปีที่แล้ว +105

    This is amazing. I'd really love to see him combine a lot of his projects (procedural planets, ecosystems, etc) into a universe sandbox type game

    • @grouchy8886
      @grouchy8886 4 ปีที่แล้ว +1

      wait its you, i was watching ur vids in 2017

    • @spocite
      @spocite 3 ปีที่แล้ว

      hi sam

    • @_Silenceman
      @_Silenceman 3 ปีที่แล้ว

      hi sam

    • @jacode422
      @jacode422 3 ปีที่แล้ว

      hi sam

  • @Gromek999
    @Gromek999 4 ปีที่แล้ว +116

    Not a lot of channels are able to make coding sound so interesting, but damn you do it well!
    can't wait for more content, it's awesome to watch and really also good at teaching.

    • @wrillwastaken
      @wrillwastaken 4 ปีที่แล้ว +1

      W-what are you doing here gromek?

    • @codefiela8215
      @codefiela8215 2 ปีที่แล้ว +1

      did not expect you to be here

  • @HiggyZiggy
    @HiggyZiggy 4 ปีที่แล้ว +44

    I love how he goes off topic every now and then and teaches you something super cool you never would of thought you were about to learn, then continues back to something super cool you clicked on to learn.

  • @bo2_435
    @bo2_435 4 ปีที่แล้ว +276

    3:09 what happens with headphone wires when you put them in your pocket.

    • @okboing
      @okboing 4 ปีที่แล้ว +13

      This is an underrated comment here have a like
      It's all I can do

    • @valovanonym
      @valovanonym 4 ปีที่แล้ว +2

      Best comment ever

    • @Vindkast
      @Vindkast 4 ปีที่แล้ว +2

      Lmao

    • @sebastianjost
      @sebastianjost 4 ปีที่แล้ว +1

      Headphone wires have three heavy ends, so this could actually be an interesting approach for studying the tangling of headphone cables.

  • @you_just
    @you_just 4 ปีที่แล้ว +49

    “Because of this, among other grievances, I’ve decided to make my own solar system.”
    Straight out of a Terry Pratchett novel

  • @iamarugin
    @iamarugin 4 ปีที่แล้ว +1070

    Coding Adventure: Outer Wilds.

    • @nepunepu5894
      @nepunepu5894 4 ปีที่แล้ว +32

      Coding adventure : examining no man's sky by making one

    • @sirgrem2988
      @sirgrem2988 4 ปีที่แล้ว +33

      Coding Adventure: Kerbal Space Program

    • @swagguy47
      @swagguy47 4 ปีที่แล้ว +6

      Exactly what I was thinking.

    • @muuubiee
      @muuubiee 4 ปีที่แล้ว +2

      None of those games use nbody physcis though.

    • @phantomderp834
      @phantomderp834 4 ปีที่แล้ว +5

      Coding adventure: Piracy

  • @creatroyer2701
    @creatroyer2701 4 ปีที่แล้ว +227

    Next video: Coding Adventure: Meaning of life

    • @Minihood31770
      @Minihood31770 4 ปีที่แล้ว +9

      That's too easy. Print 42.

    • @radekwysocki7875
      @radekwysocki7875 4 ปีที่แล้ว

      OMG i read that wrong...
      Mining... XD
      Make a 3d space exploration with procedurally generated minecraft like worlds XD
      Every player gets a planet they can modify and when they land on another planet they can ask for permission to edit the world otherwise they could only interact with it

    • @nanonorthlabs3375
      @nanonorthlabs3375 4 ปีที่แล้ว +1

      Cringy comment.

    • @MadSki11s
      @MadSki11s 4 ปีที่แล้ว

      Simulating Meaning of Life, rather.

  • @MegaTuroc
    @MegaTuroc 4 ปีที่แล้ว +15

    OMFG
    I've taken astronomy classes before I went into programming (No luck on either so far), and at 7:10 when you showed the solar system paths from a planet center. my mind immediately rose to Geocentrism, It's so amazing on how a change of perspective can show this. Early astronomers were baffled by the loops, until Heliocentrism came around.

  • @BlazertronGames
    @BlazertronGames 4 ปีที่แล้ว +42

    Oh my god! Thanks so much for mentioning outer wilds. I bought it a few days ago on sale, and just finished it. It's genuinely one of the best games I've played! It scares me to think of a timeline where I didn't watch this video and check out the game. Anyone reading this, do yourself a favour and buy it, I've played a lot of games, and this one shocked me with how enjoyable it is!!!

  • @Evoleo
    @Evoleo 4 ปีที่แล้ว +66

    I love how he plays that tango music when 3 planets are rythmically spinning around each other

    • @okboing
      @okboing 4 ปีที่แล้ว +1

      Relationships when everyone dates everyone
      That's what I thought

  • @match_mc114
    @match_mc114 4 ปีที่แล้ว +26

    These are my favorite videos on TH-cam.

  • @awiewahh
    @awiewahh 4 ปีที่แล้ว +248

    3:10 my earbuds the second I put them in my pocket.

    • @alexhobbs3814
      @alexhobbs3814 4 ปีที่แล้ว +4

      HAHAHAHA i'm dying xD

    • @kesleta7697
      @kesleta7697 4 ปีที่แล้ว +3

      You have three ears?

    • @questwalkerko
      @questwalkerko 4 ปีที่แล้ว +2

      @@kesleta7697 you have 2? how else will your eyes hear the music?

  • @arijanj
    @arijanj 4 ปีที่แล้ว +31

    This is actually so cool. Outer Wilds is one of my favorite games so this was very interesting to watch.

  • @stuprice9379
    @stuprice9379 4 ปีที่แล้ว +98

    @Sebastian At 5:00 when the Sun starts to wobble, this is essentially how exoplanets (planets around stars other than the Sun) are detected! en.wikipedia.org/wiki/Methods_of_detecting_exoplanets#Radial_Velocity

    • @delofon
      @delofon 4 ปีที่แล้ว +16

      That is one of the methods. There are a lot more exoplanets found with transit method.
      en.wikipedia.org/wiki/Methods_of_detecting_exoplanets#Transit_photometry
      *yes it's the same wikipedia article don't blame me lol*

  • @MathMagician93
    @MathMagician93 4 ปีที่แล้ว +109

    1:16 You accidentally re-invented a simpler cousin to "leapfrog integration" by first updating the velocities and then updating the positions with those velocities in the Newtonian equations. It's called "symplectic Euler". "Leapfrog integration" is as stable as that, but more accurate (though you only see that after a very long simulation time, for a solar system possibly thousands of years). So don't worry, you probably did it right.

    • @SebastianLague
      @SebastianLague  4 ปีที่แล้ว +27

      Thanks for the info!

    • @elliotstronge4839
      @elliotstronge4839 4 ปีที่แล้ว +6

      @@SebastianLague This is an amazing resource I've found for integration, especially to do with games. gafferongames.com/post/integration_basics/

    • @adrienreynaud9668
      @adrienreynaud9668 4 ปีที่แล้ว

      @Yannick Kuhn Oh I haven't seen your comment, I just suggested the Verlet algorithm ! Which is maybe more stable? I am not a specialist abot numerical scheme though

    • @tiancilliers
      @tiancilliers 4 ปีที่แล้ว +4

      @@SebastianLague The creators of Principia, an n-body gravity mod for Kerbal Space Program, used a 5th Order Runge-Kutta integrator to simulate orbits if I remember correctly. You should be able to find more info on their GitHub page, they have a folder with resources.
      Also, maybe it could be a cool idea to draw the predicted path of the spaceship as a line visible from the cockpit?

    • @MathMagician93
      @MathMagician93 4 ปีที่แล้ว +2

      @@adrienreynaud9668 The (Störmer-)Verlet algorithm _is_ the leapfrog algorithm. It just has many names, is all.

  • @Deanin
    @Deanin 4 ปีที่แล้ว +16

    Coding adventures might be my favorite programming content on the platform! Looking forward to watching this while I edit, please keep up the great work!

  • @Rouverius
    @Rouverius 4 ปีที่แล้ว +106

    “Space,” it says, “is big. Really big. You just won't believe how vastly, hugely, mindbogglingly big it is. I mean, you may think it's a long way down the road to the chemist's, but that's just peanuts to space.” - Douglas Adams

    • @gala_vs
      @gala_vs 4 ปีที่แล้ว +4

      Hitchhiker's guide ?

    • @ruroruro
      @ruroruro 4 ปีที่แล้ว +6

      And yet, if your car could drive "up", it would only take a couple of hours to go to space.

    • @c0l370
      @c0l370 4 ปีที่แล้ว +2

      i've been reading the first book,it's really good

    • @skepticmoderate5790
      @skepticmoderate5790 4 ปีที่แล้ว +6

      @@ruroruro And then another few months just to get to the moon.

    • @iCore7Gaming
      @iCore7Gaming 4 ปีที่แล้ว +3

      @@ruroruro I mean you are always in space lmao.

  • @LuRybz
    @LuRybz 4 ปีที่แล้ว +1

    This is gettig funny from how absurd it became.
    Seriously Sebastian, what the frog man? This Coding Adventure is the most over powered thing in coding I ever seen.

  • @PeregrineChurch
    @PeregrineChurch 4 ปีที่แล้ว +4

    Coding Adventures has become one of those rare series on TH-cam where I instantly like the video before even watching it.

  • @MrQwerty2524
    @MrQwerty2524 4 ปีที่แล้ว +6

    You make me feel inadequate as a Software Engineer. Which is exactly why I'm subscribed!

  • @squeakybunny2776
    @squeakybunny2776 4 ปีที่แล้ว +17

    God: this is perfect
    Sebastian lague: hmm let me improve a few things...

  • @aetherdust
    @aetherdust 4 ปีที่แล้ว +42

    8:00
    Me: Hmmmm... that looks like outer wilds
    8:45
    Sebastian: I've recently been playing a brilliant game called outer wilds.
    Me: surprised pikachu face

  • @Woodledude
    @Woodledude 4 ปีที่แล้ว +9

    OUTER WIIILDS outer wilds is an amazing game and I am SO glad to see you playing around with some of the more basic concepts from it :3

  • @NoorquackerInd
    @NoorquackerInd 4 ปีที่แล้ว +35

    Physics person: _tries to understand gravity_
    Differential equations: *henlo*

    • @sebastianjost
      @sebastianjost 4 ปีที่แล้ว +3

      That's why similations are used.
      It's not that hard to simulate a basic solar system but explicitly calculating the paths of all the planets is pretty much impossible due to the differential equations involved.
      Simulations are a powerful tool

    • @Verrisin
      @Verrisin 3 ปีที่แล้ว +2

      programmer: _timeStep_

  • @pigeon_bot
    @pigeon_bot 4 ปีที่แล้ว +35

    Maybe when you add things to the planets, you could try scaling the player down by a large margin to make the planets a lot larger. (not actual planet size, but something that could be habitable by some species at least) Just to see what it would end up like. Maybe to make a second little experiment game where you can calmly fly across space, like some of those truck driver games you can find online. Paying minimal attention to keep the ship runnng, something that you could busy yourself with in the background while chatting with some friends. Something with more of a focus on the journey than the destination.

    • @Greenpixel16
      @Greenpixel16 3 ปีที่แล้ว

      I like this idea so much that I'm trying to make it myself. I already have the gravity done

  • @niksaanic5575
    @niksaanic5575 4 ปีที่แล้ว +6

    Why is nobody talking about just how beautiful the planetary dance starting at 2:16 is? And how they go wild at 2:45? It's such a mesmerising scene

  • @supergamerfr
    @supergamerfr 4 ปีที่แล้ว +5

    Me : struggle to make an fps camera
    Sebastian: I made a universe simulation, cheers

  • @ethanoch
    @ethanoch 4 ปีที่แล้ว +4

    As an aerospace engineer, I absolutely love this --- I've been wanting to take my engineering knowledge and love of orbital mechanics to make a game kinda like this, but I need to get a better hang of coding in Unity and C# first. Fantastic work! Love your videos man.

  • @zennvirus7980
    @zennvirus7980 4 ปีที่แล้ว +1

    WOW... just... wow. The beauty of simplicity. You have in your hands the potential to create an unparalleled work of art. This is but the beginning, and already you have something that captures the imagination with its possibilities. I can't wait to see what you would do with it.

  • @jacob-utbe
    @jacob-utbe 4 ปีที่แล้ว +34

    Next episode - Coding Adventure: Theory of Everything

  • @subzeroelectronics3022
    @subzeroelectronics3022 4 ปีที่แล้ว +4

    11:04
    “As you can see, everything is jiggling like there’s no tomorrow.”
    This is an amazing string of words.

  • @Sciman101
    @Sciman101 4 ปีที่แล้ว +49

    I'm *very* curious how you made that orbit visualizer, my guess is rendering line segments one at a time, but regardless it looks fantastic!

    • @ZardoDhieldor
      @ZardoDhieldor 4 ปีที่แล้ว +2

      I would guess he is calculating the orbits first and then rendering them.

    • @Booone008
      @Booone008 4 ปีที่แล้ว +19

      Judging by the "num steps" parameter on the script, it's probably as simple as repeatedly calling his update functions for a bit and making a line out of the positions. Pretty low computational cost with this few objects :)

    • @DB-pt6zj
      @DB-pt6zj 4 ปีที่แล้ว +2

      @@svthal1 If using unity, you could render mesh procedurally, just little low poly spheres at a high sample rate to simulate a line. I've made some ridiculously high poly counts with DrawRenderMesh, it ends up being called every frame and the render thread gets big, but is very low cost to cpu since no GameObjects are created, and if it's the only thing running can perform very well in real time. Like... millions of triangles and barely a hit on your fps. And given how much he does this stuff I wouldn't put it past him to just have a bunch of DLLs using native code or compute shaders all pre-made that do various things.

  • @chrisellis1163
    @chrisellis1163 4 ปีที่แล้ว +2

    I’ve been waiting to finish school before focusing on too many extra hobbies. But coding was always a desire of mine. I love your videos and watching you progress.
    I don’t intend to do anything major with it but your tinkering around videos are a perfect representation of just having fun with learning

  • @singularhealer9720
    @singularhealer9720 4 ปีที่แล้ว +2

    Dude ive been following you for a while now and every video i find from you is more impressive then the last

  • @NicholasOrlowski
    @NicholasOrlowski 4 ปีที่แล้ว +23

    Awesome stuff!

    • @SebastianLague
      @SebastianLague  4 ปีที่แล้ว +5

      Thanks Nick!

    • @inkkles
      @inkkles 4 ปีที่แล้ว +2

      @@SebastianLague how wholesome

  • @theghastlygamer2484
    @theghastlygamer2484 4 ปีที่แล้ว +155

    Petition to rename this series to "Sebastian's Bizarre Coding Adventure"

    • @LynSpoon
      @LynSpoon 4 ปีที่แล้ว +5

      Please don’t do that....

    • @MrNerd-ll9my
      @MrNerd-ll9my 4 ปีที่แล้ว

      No.

    • @aeyempire
      @aeyempire 4 ปีที่แล้ว +3

      You tought it was a working code but it was me, errors!

  • @niddlesgaming6211
    @niddlesgaming6211 4 ปีที่แล้ว +70

    You should make a game using everything you’ve learnt from coding adventures like the clouds or terrain deformation and include biomes, poles, planets/solar system and ai animals

    • @juozasdomarkas848
      @juozasdomarkas848 4 ปีที่แล้ว +17

      Yo dawg, I heard that heat kills viruses! So I made a game that makes your computer catch fire so you can play while you disinfect yourself!

    • @magmaslasher7604
      @magmaslasher7604 4 ปีที่แล้ว +4

      He'd need one crazy supercomputer for that one

    • @disrespecc9678
      @disrespecc9678 4 ปีที่แล้ว +3

      Seeing as his PC could barely handle the clouds, this will not happen

    • @hedgehog3180
      @hedgehog3180 4 ปีที่แล้ว +2

      I don't think his clouds would work for a planet based system seeing as they're a flat plane. He'd need to figure out a way to wrap a planet in clouds.

  • @emiknits02
    @emiknits02 4 ปีที่แล้ว

    imagine being so upset about the current ability to travel to and explore our current solar system that you just make you own. but really though, i'm loving your content. i just started learning HTML, CSS and Javascript on my own so i can't really understand anything of the code itself, but you explain in a great way and you're so relaxing and nice to listen to.

  • @forvicommits
    @forvicommits 4 ปีที่แล้ว +36

    1:50 every video i'm curious how you use line renderer etc. to debug or show/ predict movement like this???

    • @KipppJ
      @KipppJ 3 ปีที่แล้ว +2

      I think it's Gizmos instead of LineRenderer

    • @forvicommits
      @forvicommits 3 ปีที่แล้ว +3

      its both. Debug.DrawLine while in Edit mode and LineRenderer enabled while in playmode.

    • @gwenturo9550
      @gwenturo9550 2 ปีที่แล้ว

      I can't figure out how to configure a line renderer to work with this lolol

  • @LionileBruh
    @LionileBruh 4 ปีที่แล้ว +3

    Am I the only one who was smiling throughout the whole video because of how cool this is

  • @TiagoRodrigues-zp7ux
    @TiagoRodrigues-zp7ux 4 ปีที่แล้ว +10

    Here's a tip:
    If the planet's orbital periods are multiples of each other you should get a stable system.
    If think it's similar to how harmonic oscillators work.

    • @MortimerKerman
      @MortimerKerman 3 ปีที่แล้ว +3

      It's called orbital resonance

  • @chewico3d133
    @chewico3d133 4 ปีที่แล้ว +17

    This is what makes me feel happy

    • @alatan2064
      @alatan2064 4 ปีที่แล้ว

      I am grinning like a child in a toy store.

  • @rutvikrana512
    @rutvikrana512 4 ปีที่แล้ว +1

    So so so great .... I have created my solar system in Unity today and this video just popped up in recommendation. You have calculated position manually that’s awesome. I was also trying to do it. But had many troubles. So I then just added initialforce instead initial velocity and boom no coding is needed for rotation. The idea of spaceship and you can land on it is awesome. You are amazing 💕

  • @YurgenGrimwood
    @YurgenGrimwood 2 ปีที่แล้ว +2

    2:00 anyone else who found the orbits and music together just absolutely beautiful? Something about it mesmerized me.

  • @Maggiethegsd
    @Maggiethegsd 4 ปีที่แล้ว +3

    He sounds so excited when he explores stuff in his own game - it's really awesome!!

  • @goodie9911
    @goodie9911 4 ปีที่แล้ว +7

    Exactly what I've been waiting for

  • @Baleur
    @Baleur 4 ปีที่แล้ว +3

    2:22 just beautiful.. And to think, this is how our planets move around our moving star, in real life.

  • @AllTheFishAreDead
    @AllTheFishAreDead 4 ปีที่แล้ว

    I know this isn't in the spirit of this video, but Nbody sims are an excellent example of where a first pass at OOP falls short. On each update if you're pulling the 'body' object you're pulling a bunch of stuff you don't need into cache. You can get *significant* (i.e. 2 orders of mag) speedup by moving to a cache-coherent data model for these things. Doesn't matter for small N but for bigish N it's a massive advantage. Still - rad video!

  • @french_guy5495
    @french_guy5495 2 ปีที่แล้ว

    Imagine creating a big game using every coding adventure you did. For example, the atmosphere one, the clouds one, the ecosystem one, the procedural planets and moons one, without forgetting that one. You get it. That would be soo cool! I hope you will do something like that someday!

  • @sleepi5550
    @sleepi5550 4 ปีที่แล้ว +27

    8:10 *NASA wants to know your location*

  • @Killbayne
    @Killbayne 4 ปีที่แล้ว +49

    2:55 me trying to dock inn KSP

    • @okboing
      @okboing 4 ปีที่แล้ว

      How to tie a knot

  • @AntiY
    @AntiY 4 ปีที่แล้ว +39

    This series is cool - but the ecosystem video was by far my favourite.

    • @match_mc114
      @match_mc114 4 ปีที่แล้ว +12

      Same! Put the ecosystem on the planets

    • @caxopog
      @caxopog 4 ปีที่แล้ว +3

      @@match_mc114And then, after 10000 cycles put some species from one planet to another!

    • @homeyworkey
      @homeyworkey 4 ปีที่แล้ว +2

      Hard disagree. These are much more interesting and cool.

    • @dot32
      @dot32 4 ปีที่แล้ว

      @@homeyworkey Same, the ecosystem one was probably one of my least favourites :>

    • @homeyworkey
      @homeyworkey 4 ปีที่แล้ว

      @@dot32 There's another channel that does very similar things too, forgot their name though. They're a blue blob (you will know him if you know him)

  • @RobertMcKnight1
    @RobertMcKnight1 ปีที่แล้ว

    Love the short explanation of origin offsets! I worked on autonomous cars and we had almost the exact same problem where the car would start behaving much worse further from its origin. Cool how some things transcend the physical and digital world

  • @danielapeccinabreu7139
    @danielapeccinabreu7139 3 ปีที่แล้ว +2

    Omg... I'm not even of the area but I just loved the project and your passion about it. So happy about how you have explained everything. I'VE GOT IT ALL! Lovely work! ❤️

  • @chrisdock8804
    @chrisdock8804 4 ปีที่แล้ว +100

    "these masses actually cancel out."
    Einstein has entered the chat.

  • @davawen9938
    @davawen9938 4 ปีที่แล้ว +49

    "I would like to experiment"
    "Maybe some procedurally generated planets"
    "The planets don't even rotate yet"
    good job but please.
    don't make me hope :'(

    • @herlantmajor5883
      @herlantmajor5883 4 ปีที่แล้ว +1

      It's actually something he already did in the past, there's a whole series about it on his channel

  • @LordLongHands
    @LordLongHands 4 ปีที่แล้ว +9

    Quarantine has me watching a dude play god and create a solar system of his own, Nice.

  • @malcolmfarris6874
    @malcolmfarris6874 4 ปีที่แล้ว

    When I first saw that you made a universe sandbox-like engine that can simulate orbits, I was like "oh that's pretty cool" but then you added the ability to physically go in the universe and explore the planets you created and then I'm like "Oh my god that's awesome " and now you are planning to add stuff like lifeforms and now words can not describe my excitement for your next few uploads.

  • @leoismaking
    @leoismaking 2 ปีที่แล้ว +1

    Whatever one may think of Star Citizen, I always thought it was wild that they went in there and rewrote to the positioning system to use 64 bit double precision floats. Fantastic video as always, Sebastian.

  • @Slashscreen
    @Slashscreen 4 ปีที่แล้ว +60

    KSP resolves this precision issue (as well as issues with the rocket parts) by instead moving all of the planets *around* the player, keeping the spaceship at the origin.
    Also, the planets are on rails, but that takes the fun out of the whole exercise, doesn't it?...

    • @linuspauly2380
      @linuspauly2380 4 ปีที่แล้ว +8

      The concept of moving everything relative to yourself is embedded everywhere, OpenGL "moves" it's camera around the same way

    • @TheAmazingCowpig
      @TheAmazingCowpig 4 ปีที่แล้ว +5

      I mean, if you want to take the planets off-rails in KSP, there's always Principia for proper n-body physics.

    • @PeterSeres
      @PeterSeres 4 ปีที่แล้ว

      @@TheAmazingCowpig IIRC, planets still won't be off the rails with Principia, but the orbit of your spacecraft will use N-body physics instead of Kepler orbits.

    • @TheAmazingCowpig
      @TheAmazingCowpig 4 ปีที่แล้ว +1

      Peter Seres I'm pretty sure planets are off-rails in Principia; they specifically have to adjust the orbits of the Joolian moons from their original orbits, or else they'd cascade into Jool.

    • @charleslambert3368
      @charleslambert3368 4 ปีที่แล้ว

      th-cam.com/video/1RtMMupdOC4/w-d-xo.html

  • @celiacasimiro465
    @celiacasimiro465 4 ปีที่แล้ว +36

    When I finished watching the whole episode.
    TH-cam: This video was published 22 seconds ago
    Ok, TH-cam. I think

  • @blackfrogstudios6670
    @blackfrogstudios6670 4 ปีที่แล้ว +9

    Imagine if he had procedurally generates worlds with clouds, ecosystems, and boids

  • @BiggstheCat
    @BiggstheCat 4 ปีที่แล้ว

    Through mashing a variety of space physics tutorials together I got some pretty good physics going but reducing all the relative positions and sizes of the celestial bodies to try and fit the whole solar system into a scene didn't work exactly as hoped. Most planets went into some kinda weird orbit around the Sun but poor Mercury always got ejected from the solar system.
    Looking forward to having a mess with the project files. Nice one for the excellent series!

  • @thesleepydot
    @thesleepydot 4 ปีที่แล้ว +1

    the three bodies orbiting and pratically dancing with each other was an entertaining detail XD the music too lol. for real, it looks like they are juggling each other. super cool

  • @jpowell69
    @jpowell69 4 ปีที่แล้ว +11

    3:24 It would be great to see a tutorial on the orbit visualisation you have here.

    • @brugna4158
      @brugna4158 3 ปีที่แล้ว +2

      I know it's been a year but I had the same exact thought as you and am actually trying to replicate that in unity using the code that he gave us, hopefully I'll be able to do it

    • @nickgennady
      @nickgennady 2 ปีที่แล้ว

      Good idea but you got to be careful. When you scale down to much physics and movement gets less precise (what I mean is less “resolution” for numbers). Now Unity could get around or really make this less of a problem this by upgrading Unity to be a 64bit system (Use doubles instead of floats). Unreal Engine just upgraded to be 64Bit and I think Unity should as well.

  • @zirkusdirektor
    @zirkusdirektor 4 ปีที่แล้ว +8

    Kerbal Space Program: *exists*
    Sebastian Lague: I'm about to end this mans whole career

  • @Battle_Engineer
    @Battle_Engineer 4 ปีที่แล้ว +117

    Why didn’t you just add your planet generation to the planets?

    • @just_matt_gaming5030
      @just_matt_gaming5030 4 ปีที่แล้ว +43

      I think thats something he is setting up for :) I also hope he does that

    • @Orbis92
      @Orbis92 4 ปีที่แล้ว +42

      "just" :D

    • @kffire12
      @kffire12 4 ปีที่แล้ว +16

      "If it were so easy"

    • @mercartax
      @mercartax 4 ปีที่แล้ว +8

      Weren't the procedural planets based on Simplex noise derived from world space positions of the vertices?
      Moving these planets might result in constantly updated surfaces. Not sure though... But fixable

    • @cacnus
      @cacnus 4 ปีที่แล้ว +2

      @@kffire12 it's not that difficult, the only rough part would be importing the generation files and tweaking them a bit.

  • @Drizzle015
    @Drizzle015 4 ปีที่แล้ว

    Just found this channel and I'm hugely impressed by everything. What you're doing, how well you explain it, how relaxing and easy you make it all seem... It's a good insight into some ways games and computers do things as well. And we get extra real-world information on the side.
    And I love the lines like the one about the purple planet people :D
    This is all-round quality content.

  • @Zenya101
    @Zenya101 3 ปีที่แล้ว +1

    Amazing to see the start of so many wonderful coding adventures from this project!

  • @BrightBitGAMES
    @BrightBitGAMES 4 ปีที่แล้ว +8

    Very, very interesting and great presentation! However, shouldn't you use MovePosition for the rigidbodies instead of changing the position directly? I've got so many more questions. :) For example: Won't the orbits get unstable over time due to the floating point issues? Precalculated orbits and kinematic rigidbodies that move along those orbits might be able to circumvent that. There would still be issues with high velocities though.

  • @poopsikins3522
    @poopsikins3522 4 ปีที่แล้ว +7

    11:34 You basically just made The Planet Express Ship from Futurama.. The ship stays still but the space around you moves.

  • @sc1fi250
    @sc1fi250 4 ปีที่แล้ว +25

    Friggin personalized notifications, I didn’t get notified

    • @Saleca
      @Saleca 4 ปีที่แล้ว

      Got it fast anyway xD

    • @sc1fi250
      @sc1fi250 4 ปีที่แล้ว

      @@Saleca Heck yeah dude

    • @JohnDavidDunlap
      @JohnDavidDunlap 4 ปีที่แล้ว

      It's nothing personal.

  • @1ydia
    @1ydia 3 ปีที่แล้ว

    I was inspired by this and started working on a solar system of my own! I made it so that not every body affects every other body-- I made a script called CelestialSystem so that, for example, a gas giant's moons wouldn't be affected by other planets and be thrown out of whack. Worked for me! Either way, very cool.

  • @HBon111
    @HBon111 4 ปีที่แล้ว

    I am not a coder, no little to nothing about it. But I hecking love your channel and I get pretty excited when you post a new video. It's just very soothing hearing you go through your process. Very cool!

  • @maggie2556
    @maggie2556 4 ปีที่แล้ว +4

    "But there's a fire extinguisher, so at least it's safe."

  • @TWGuardian
    @TWGuardian 4 ปีที่แล้ว +4

    Hey Sebastian, cool video! I've been experimenting with orbital simulators myself, and a problem that I encountered is that modeling orbits with initial velocity and gravity, although more realistic and allowing for complex orbits, doesn't give neat cycles. In other words, orbits may drift over time. This is fine for a physics-driven game, but not too great when you need that precision. I found the following analytic method for orbit simulation in a university syllabus for astrophysics.
    It is not possible to directly express an orbiting body's true anomaly as a function of time, but there is a numerical method that, fortunately, is easily programmable.
    Firstly, compute the mean anomaly: M_a = 2*π(t - t0) / P
    Where t0 is the time at which the orbiting body is at its periapsis, IE the lowest point in the orbit.
    Then you can use the following function to compute the eccentric anomaly:
    const byte accuracy = 8;
    static float EccentricAnomaly(float meanAnomaly, float eccentricity)
    {
    float eccentricAnomaly = meanAnomaly;
    for(byte b = 0; b < accuracy; b ++)
    {
    eccentricAnomaly = meanAnomaly * (eccentricity * Mathf.Sin(eccentricAnomaly));
    }
    return eccentricAnomaly;
    }
    where meanAnomaly is the value M_a as computed above, and the eccentricity is one of the Kepler orbit parameters, defining the oblateness of the orbit.
    You can then calculate φ, the angle in radians between the periapsis and the current position of the orbiting body. This can be used to construct a unit vector from the orbited body pointing at the orbiting body. You van compute φ as follows: cos φ = (cos(E)−1)/(1−e*cosE)
    where E is the eccentric anomaly.
    Now knowing φ, we know the direction to the orbiting body. The altitude (ie the magnitude of the vector between the orbited and orbiting body) is then found as: r = a(1 - e*cos(E))
    Where 'a' is the semi-major axis, 'e' is eccentricity, and 'E' is the eccentric anomaly.
    Scaling the unit vector computed through φ with r, you finally find the position of the orbited object relative to the orbited object. This means that you can have all motion be local, which in turn makes the system fully compatible with your solution to spatial jitter (which is, interestingly enough, the same solution that Kerbal Space Program uses).
    This method doesn't allow for complex N-body simulations, but _does_ allow for massive parallelization. It can be implemented using Jobs and ECS for increased performance, or even with a compute shader to calculate thousands of orbits at once.
    I'm currently building an asset based on this method, which I hope to publish on the Asset store for free.

    • @okboing
      @okboing 4 ปีที่แล้ว +2

      I lost you like 5 words in

  • @emilydixon3886
    @emilydixon3886 4 ปีที่แล้ว +6

    Imagine if that taught mathematics like this in school! I would of actually paid attention.

    • @TheCivildecay
      @TheCivildecay 4 ปีที่แล้ว

      I have that with every science/math/coding video on youtube.. this is so much better explained than those boring textbooks.

  • @LIGHTBULBCODING
    @LIGHTBULBCODING 2 ปีที่แล้ว

    To find out the initial velocity, you can use the formula: velocity = the square root of (gravity * mass of central planet) / The distance between them.
    (G * m2) / r ! Thanks for posting this video!

  • @flippert0
    @flippert0 3 ปีที่แล้ว +1

    Whoa, the planets are dancing tango really well!