Skip to content

feat(atmos): Port and fix Atmospherics system from outdated branch#1504

Open
nvinh26 wants to merge 1 commit into
RE-SS3D:developfrom
nvinh26:feat/issue-1464-resurrect-atmospherics
Open

feat(atmos): Port and fix Atmospherics system from outdated branch#1504
nvinh26 wants to merge 1 commit into
RE-SS3D:developfrom
nvinh26:feat/issue-1464-resurrect-atmospherics

Conversation

@nvinh26
Copy link
Copy Markdown

@nvinh26 nvinh26 commented May 13, 2026

Summary

Resolves #1464 - Ports the Atmospherics system from PRs #367/#374 with all known bugs fixed.

Changes

  • AtmosState.cs - Serializable gas state struct (PV=nRT)
  • AtmosSimulation.cs - Simulation engine with pressure, gas mixing, temperature, wind

Bug Fixes

# Bug Fix
1 Tiles hardcoded to air Serializable AtmosState initialized via SetState()
2 Vacuum tiles disabled Explicit IsVacuum with capped 10%/step outflow
3 Wind direction reversed FROM high TO low pressure
4 Temperature below zero Clamped with heat capacity math

Architecture

  • IAtmosSystem interface for decoupling
  • Tile deactivation optimization preserved
  • 4-gas system: O2, N2, CO2, Plasma

Resolves RE-SS3D#1464 - Resurrects the atmospheric simulation with 4 bug fixes.

- AtmosState.cs: Serializable gas state struct (fixes hardcoded air init)
- AtmosSimulation.cs: PV=nRT simulation engine
  - Fix: Vacuum tiles now use capped outflow (10%/step)
  - Fix: Wind vector direction corrected (FROM high TO low pressure)
  - Fix: Tile deactivation optimization preserved
  - Added IAtmosSystem interface for architecture decoupling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resurrect the Atmospherics system

1 participant