By what process is gravitational potential energy transformed into heat within a shrinking core?

Answer

Gravitational potential energy converts to kinetic energy, then to thermal energy upon particle collision

As the core shrinks under gravity, potential energy becomes kinetic energy; collisions between particles subsequently convert this kinetic energy into significant thermal energy, causing the center to heat up.

By what process is gravitational potential energy transformed into heat within a shrinking core?
astronomyforcegravitystar formationinterstellar cloud