This animation shows the motion of a ball moving in a box and colliding elastically with the walls. This forms the basis for an animation of the motion of molecules within an ideal gas.