Got a couple questions

  • Videogamer555
    26th Apr 2012 Member 1 Permalink
    Why does when SING explode next to a 1 block thick wall, it generate a pressure burst outside that wall?

    Also why does wall not fully contain the pressure set by pressure tool (or any other means)? I notice a certain "leak" of pressure. For example when I bring the pressure all the way up to 256 inside a walled in area, even if the walls are 10 blocks thick, the 256 slowly decreases. to about 150 or so over a period of several minutes. While this is happening though there is NO CHANGE outside the walled in area. The pressure isn't escaping into the environment, instead it is just DISAPPEARING. What's up with that?
  • mniip
    26th Apr 2012 Developer 0 Permalink
    Pressure decreases every frame, its specially coded
    pressure under walls is a sub-effect of air simulation
    not sure about sing, but i think its just setting pressure in a square thicker than a wall
  • jacksonmj
    29th Apr 2012 Developer 0 Permalink
    Yes, the SING is setting pressure in slightly too large an area when it explodes.


    A thread where the gradual pressure decrease has been previously discussed:
    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=8115

    What I said in that thread:
    It's a deliberate effect (but don't ask me why TPT air physics was made like this, because I don't know...). Every frame, pressure goes closer to zero by 0.01% of its current magnitude.
    The line responsible is "pv[y][x] *= AIR_PLOSS;"
    Although for some reason, with that removed, pressure still decreases very slowly. Possibly due to numerical inaccuracies somewhere.