🧪 Molecular Kinetic Energy — 3D Gas Chamber
A real WebGL gas chamber: spheres bounce inside a cube with genuine elastic collisions, driven by the same temperature-to-speed relationship as the 2D original, now in true 3D space you can orbit.
This 3D companion drives the exact same kinetic-theory mechanic as the 2D original inside a real WebGL cube: every sphere's speed is drawn from sqrt(T/100) × (rand()×2+1) in a random 3D direction, walls flip the crossed velocity component, and pairwise collisions swap the velocity component along the line of centers — the direct 3D generalization of the 2D version's rotate-swap-rotate elastic collision, now correct for a sphere hitting another sphere from any angle in space rather than just in a plane. Pressure is read the same way, too — the fraction of particles touching a wall this frame, scaled by temperature — and the same 200K/400K thresholds switch the phase readout between solid, liquid and gas. Orbit the chamber with the mouse while raising the temperature slider to watch the particle cloud go from a slow, ordered drift to a fast, chaotic sphere-storm bouncing visibly off all six faces of the box.
A WebGL gas chamber reproducing the 2D original's kinetic theory in true 3D: temperature-driven particle speed, 3D elastic sphere collisions along the line of centers, six-wall reflection, and a live pressure/phase readout from the same formulas as the 2D version.
3D · Three.js r128 · WebGL · 60 FPS target · runs fully client-side, no install