Cosmic collision with planets