Making a basic space sim in Godot - Gravity

Sdílet
Vložit
  • čas přidán 3. 06. 2024
  • I went ahead and implemented an n-body gravitational scheme, and some basic indicators to track them through space.
  • Věda a technologie

Komentáře • 3

  • @thomrade
    @thomrade Před 23 dny +1

    really interesting stuff! I've been toying with similar stuff for a long time just for fun. it's really interesting to see how you're approaching it!

  • @CarlNorwood
    @CarlNorwood Před 6 dny

    Very nice work. Just spotted this though: the length() function will use a sqrt() which is time consuming in itself. You have accidentally if LastPos.... inside the for loop. Move this and you gain a lot of extra cpu time. Even a much longer tick list.