Q.
The bodies moving toward each other collide and move away in opposite direction. This is same as rise in temperature of bodies is due to apart of kinetic energy converted into:
When the bodies collides with each other a part of their kinetic energy is converted into internal energy. Therefore, the temperature of the body rises. This collision is not perfectly elastic because kinetic energy is converted into heat energy.