As far as I know thermal energy is a part of internal energy which includes kinetic energy of particles of a body with respect to its center of mass. And temperature is related to this thermal energy.
If two solid bodies(one at rest) of equal size collides in an ideal condition(no friction or dissipation of energy) such that two surfaces of two bodies which collide are exactly of same shape, then that collision should be elastic. Considering that the surfaces of collision are of similar shape and that is why the force is unformly distributed all over the surface which does not cause any change in internal microscopic motion of particles.
But what if the two objects are of different sizes as shown in the image(fig-02) below? If we consider that the smaller one is in motion and it collides with the larger one, will the force applied on the surface of larger one be uniform? Or will it be for some moment non uniform such that a small part of gets slighlty dispaced in the direction of force and causes internal particles in that portion to dissipate energy due to collision with the surrounding particles? If the later case occurs, will it change the temperature ot total thermal energy of the larger body?
I am refering to such a condition as if the collision is taking place in space where ther is no air resistance, no friction.... That is no means of energy loss.