When a comet passes near the Sun, it experiences a force that causes it to change direction. What causes this force?

A.
the Sun's mass
B.
the Sun's magnetism
C.
the Sun's electric charge
D.
the Sun's temperature

B. the Sun's magnetism