Statistical thermodynamics of moving bodies