Since the molecules of a gas are constantly in motion, moving and hitting other gas molecules in all directions of the enclosed container, the molecules transfer a portion of energy through the interaction of other gas particles as they hit, but then bounce off.