Heat and Mixing Temperatures

The heat Q needed to raise an object’s temperature by ΔT is proportional to its mass m and specific heat c.

Textbook model

Q = mcΔT  mixed temperature T = (m₁c₁T₁ + m₂c₂T₂) ÷ (m₁c₁ + m₂c₂)

conservation of heat gives the final temperature.

Simplified game model

T += (T_target − T) × k × dt (approach the target exponentially)

move the temperature toward a target by a fixed fraction each frame (exponential approach). The end value can match, but the speed is just a tuning number.

The textbook model is also an idealization with simplified conditions; real phenomena have more factors.

Simulator

When things at different temperatures are mixed, heat flows from hot to cold; with no heat lost to the surroundings, heat lost equals heat gained (conservation of heat).

Water’s specific heat is about 4.2 J/(g·K) (it changes slightly with temperature). The simulator mixes water with water.

How games use it

Cooking heat in games, melting and freezing effects, temperature puzzles.

More laws in this category

Physics Laws Quiz Heat & Thermodynamics

Sources

Checked: 2026-11-29