New Gravity Mode

  • Joda123
    16th Jan 2012 Member 1 Permalink
    I don't know what you want to call it, but for now I'll just say "Galactic Mode".

    Okay, so to get to the idea, what I've been thinking, if we could get Newtonian Gravity to update faster, we could create a new Gravity Mode that makes each particle have a gravity field of its own. Like say for example, STNE = 3 and DUST = .5 . So that when you have a pretty good amount of particles, they will start "falling" towards each other to form a sort of "mass" (or planet if you want to call it that ;) 

    Sadly, I don't know what this would useful for, but it would make PT really cool. And yes, I know it would take a lot of hard work to do this (especially with Newtonian Grav. update speed). But just sayin'.
  • Minishooz
    16th Jan 2012 Member 0 Permalink
    Yeah, good idea
  • airstrike52
    16th Jan 2012 Member 0 Permalink
    @Joda123 (View Post)
    It's actually quite easy to add - each particle just needs to have its own gravity field, which is (I think) just one variable in the code of each element that needs to be changed - but it would cause very intense lag.
  • jacksonmj
    16th Jan 2012 Developer 0 Permalink
    There is a way to make Newt gravity update faster, it's a mathematical technique called fast Fourier transforms. It's already in the source code and it works fine. However, it isn't enabled in the compiled versions on this website because it makes them enormous.

    But the main problem is that there isn't any conservation of momentum in Powder Toy, so once particles start clumping together they tend to just stop moving. Liquids are a bit better, and do actually merge together into a single lump if you give every particle some N-grav, but still not perfect.
  • limelier
    16th Jan 2012 Member 0 Permalink
    Idea is good, but I imagine the lag.
  • MasterMind555
    16th Jan 2012 Member 0 Permalink
    @jacksonmj (View Post)
    How huge? 10mb? 100mb? 1gb?
  • Simon
    16th Jan 2012 Administrator 0 Permalink
    @jacksonmj (View Post)

    jacksonmj:

    There is a way to make Newt gravity update faster, it's a mathematical technique called fast Fourier transforms. It's already in the source code and it works fine. However, it isn't enabled in the compiled versions on this website because it makes them enormous.
    I'm not too bothered about the executable size, it's the crash on previous versions of Windows (pre-Vista) that is preventing it from being enabled.
  • disturbed666
    16th Jan 2012 Member 0 Permalink
    @Simon (View Post)
    Couldn't you make it an option then?
  • henry700
    16th Jan 2012 Member 0 Permalink
    Yeah i had this idea a while ago but i thought someone had posted it so i didnt post.

    it would be really cool and we could make some actual planet collisions with it.
  • therocketeer
    16th Jan 2012 Member 0 Permalink
    this would be real newtonian gravity, because his theorum was that everything has it's own gravity field.