Type A Type B Maxwell-Boltzmann fit

Elastic Collisions — 2D Billiards & Maxwell-Boltzmann (2D)

This 2D companion runs the same impulse-based elastic-collision physics as the 3D version on a plain canvas: a side panel exposes particle count, radius, speed scale and the A:B mass ratio, a live readout tracks total kinetic energy, momentum and temperature, and a speed histogram redraws every frame next to the theoretical Maxwell-Boltzmann curve so you can watch a random initial state settle into thermal equilibrium.