A system’s total kinetic energy is always written as the sum of two contributions: one tied to the motion of the centre of mass and one internal, computed relative to the CM. This is König’s theorem, the key to understanding what the temperature of a gas is.