Element Suggestion: Nt.GravityShielding

  • Potbelly
    23rd Dec 2012 Banned 1 Permalink
    This post is hidden because the user is banned
  • therocketeer
    23rd Dec 2012 Member 0 Permalink
    @Potbelly (View Post)
    okay sounds interesting.. so is it like the inverse of what gravity wall does now? wait... stopping gravity from escaping a confined area... isn't that what gravity wall should be like? I mean, what it is now is really the inverse of what it should be.
  • jacob1
    23rd Dec 2012 Developer 0 Permalink
    @Potbelly (View Post)
    There is a reason gravity wall works like it does. Gravity isn't like pressure, where it spreads around. The entire gravity grid is updated at once, using some formula I don't understand.

    It would take modifying whatever updates this to work. I don't know if it would even work with GRAVFFT enabled (the thing that makes it faster). Also, I haven't really done anything with this part of the code, so I don't even know completely ... but I would assume it is harder than it seems

    How does this work exactly? Does it block gravity outside an area instead of inside? Or is it supposed to shield, and not be a circle zone like gravity wall is
  • Potbelly
    23rd Dec 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacob1
    23rd Dec 2012 Developer 0 Permalink
    @Potbelly (View Post)
    ok, i'm not sure how much rewriting would need to be done ... I just know that gravity does not work that way at all. It does not spread around like pressure, it takes a gravity source at one point, and it calculates how much gravity each other point should have (I think)
  • boxmein
    23rd Dec 2012 Former Staff 2 Permalink
    @jacob1 (View Post)
    With something like ray tracing, it would probably also detect objects?
    image
    If newtonian gravity tested spreading similarly to this (White = gravity "particles", darkred = magic wall particle) it would be possible to do blocking walls.
  • jacksonmj
    24th Dec 2012 Developer 1 Permalink
    It does not spread around like pressure

    this ^

     

    FFT gravity would not work with a shield instead of a completely enclosed area. The slow method of calculating gravity could perhaps be modified to work with shields (probably in a manner similar to that suggested by @boxmein), but only by making it much much slower. And it is quite sluggish enough already, I don't think making it slower is a good idea.

     

    A more practical idea: it may be possible (though a bit tricky) to have only the gravity sources in an area completely enclosed by gravity wall contributing to gravity in that area.

  • boxmein
    24th Dec 2012 Former Staff 0 Permalink
    @jacksonmj (View Post)
    Since in the usual sense the gravity rarely changes, could it be so that it's calculated only on a change of the map? Using GPMP would cause some sorts of lag spikes though since the recalculation via ray traces happens once and thus is periodic and unstable, and (N|P)GRV will be totally bummed... Generally saying though, it wouldn't work well, though there are ways of making the slow down less impacting (Less rays).
  • Potbelly
    24th Dec 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacksonmj
    24th Dec 2012 Developer 3 Permalink

    @boxmein (View Post)

    That already happens. The gravity field is only recalculated when gravity sources change (and the recalculation is done in a separate thread).