Cosmic collision of planets