Pressure is what creates heat ( expanding gasses ) movement of molecules at a extreme rate pressure is what produces velocity. friction of the solid gas flow and the solid bullet gas flow compounded by surface temps from heat and expansion and contraction is what kills barrel life that's what its call erosion.
Exactly!