Under Newtonian gravity, where masses attract each other, light would indeed not be affected by gravity, and would always travel in a straight line.
But as it turns out, the Newtonian description of gravity wasn’t entirely correct, and gravity doesn’t actually work as an attractive force between masses.
Rather, the presence of mass changes the shape of space itself, such that “straight” lines aren’t actually straight, but are bent in the presence of heavy masses. Light still travels in a “straight” line, but space itself is not Euclidean in the presence of mass, such that even parallel straight lines can intersect for instance (such as what happens with gravitational lensing).
Latest Answers