So, I was wondering how I might go about doing something. What I would like to do, ultimately, is create an atmospherics type system for a spaceship, which includes keeping track of how much air there is in any given room.
How would you go about doing this? If there is a hull breach, then obviously the air would get sucked out of the room. But how about pumping air back into it (assuming there are appropriate pipe connections)?
What makes it a bit more complicated is the fact that if a door to a room is open to, say, a hallway, and a hull breach occurs inside the room, it should suck all of the air out of the room AND hallway, but if the door is sealed, then only the hallway should re-pressurize.
Any tips on how to go about such a system would be greatly appreciated. Thanks!
Develop games in your browser. Powerful, performant & highly capable.
Your life for the next few months will revolve around celluar automata.
(Unless Yann shows up and gives an impossibly amazing example)
looks like flood fill to me
The Flood Fill looks more accurate, thanks for that link :)
Not sure a flood fill would completely satisfy what you want. But what do I know ;)
I think it would work best in so far as it serves its ultimate function, which is to regulate o2 or other gasses in confined/non-confined spaces, and seems a hell of a lot easier to come up with some way to implement it as well :) Thank you for the suggestions!