Determining effects of collisions between galaxies