Anfonwch hwn fel neges destun: Atom state evolution and collapse in ultracold gases during light scattering into a cavity