I understand that nuclear fusion generates energy in the form of gamma-rays (as in the pp chain), but how does that translate into heat in the star's core? Or is the heat just generated by gravitational contraction?
After doing more research, I found that nuclear fusion puts some energy into the particles in the form of momentum, but is that enough to cause the heat?