Gravity and Scale

  • billion57
    15th May 2012 Member 1 Permalink
    If every particle or area of particles had its own gravity, that would be way better for many simulations, and would open up the path for new ones.
    But--- Gravity depends on mass and distance, so if there was a scale feature put in (the advanced gravity would only work with this), then it would be more versatile and would not break saves.
    By scale feature, I mean a little text box saying- "One pixel = __cm?" Or maybe m or Km.
  • mniip
    15th May 2012 Developer 1 Permalink
    you definitely wish 1fps, dont you?
  • limelier
    15th May 2012 Member 0 Permalink
    @billion57 (View Post)
    If newtonian grav. lags enough to bring an old PC like mine to >10 FPS, this'll bring it to 1.
  • Raphi
    15th May 2012 Member 0 Permalink
  • billion57
    15th May 2012 Member 0 Permalink

    billion57:

    or area of particles.


    Meaning that the particles in a certain area (a square) would all be moved in the same direction at the same time.
    This would mean way less calculations.
  • keperitan
    16th May 2012 Member 0 Permalink
    Powdered GPMP anyone? Heck, I'd rather have that than STK2.
  • BoredInSchool
    16th May 2012 Member 0 Permalink
    @billion57: I second this notion. And for those with older computers, why not just make it another option in the Simulation Options screen? It could be something like Particle Gravitation. It would help for making solar system simulations.
  • billion57
    16th May 2012 Member 0 Permalink
    Yeah, that's where i got the idea in the first place.
  • OmegaSupreme
    16th May 2012 Member 0 Permalink
    @ keperitan

    What Powdertoy do you play?
    They already have Powered GPMP - Its called GPMP.... use PSCN to Activate and NSCN to deactivate. Use Heat to heat it and increase its gravity, and Cool to cool and decreases its gravity....
  • jacob1
    17th May 2012 Developer 0 Permalink
    This actually might not be too hard, in the gravity update code when it checks for BHOL/WHOL (maybe not how it works, I haven't looked at it yet), just add gravity for all particles instead of only those. It would really only work well with fftw enabled, because with that, gravity is basically instant, even on a full screen (still a lot of lag though). Without it, by the time gravity was updated, the particles would have moved far away. It isn't enabled in the normal tpt, it would have to be enabled first (the bug with older computers was fixed, there's no reason not to)