The distance between stars is so large with respect to the diameter of their planetary systems that the probability of physical collision is small because the spin planes of both galaxies are not at the same angle. The main danger to any inhabited planet will be the radiation storm generated by the collision of galactic magnetic fields, its intensity can activate supernovae, eliminate planetary atmospheres, change the magnetic polarity at the poles and destroy all types of DNA. The close passage of another star would alter the dynamics of the cometary cloud, the orbits of outer planets, and even the orbital relationship between the sun and the inner planets.