So, I'm making a physics engine, and I need to know what is the temperature object A has after colliding with object B.
Object A is 10 earths in diameter, and is 10 earths in mass. Object B is 5 earths in diameter, and 5 in mass.
Now, A is traveling at a constant speed of 200 m/s towards B, and B is traveling at 200 m/s towards A. What would be the final temperature of A after this perfectly unelastic collision?
I know the mass, surface, initial velocity, final velocity, initial temperature and quite basically every value of both.
EDIT: I also know the kinetic energy of both.