Heat Transfer Formula for 2D Vector Games

Click For Summary
SUMMARY

The discussion focuses on implementing a heat transfer formula for 2D vector games, emphasizing the need for realistic physics in game mechanics. Key concepts include the heat transfer equation ΔU = Q + W, where Q represents initial heat and W denotes work done. The conversation highlights the importance of considering environmental factors, such as radiation in space and convection in water, to accurately model temperature changes based on player movement. Simplifications are suggested for practical implementation, such as using Newton's Law of Cooling for temperature adjustments.

PREREQUISITES
  • Understanding of basic thermodynamics principles
  • Familiarity with Newton's Law of Cooling
  • Knowledge of heat transfer phenomena: convection, radiation, and conduction
  • Basic game development skills, particularly in physics simulation
NEXT STEPS
  • Research Newton's Law of Cooling for practical temperature modeling
  • Explore thermodynamics textbooks for deeper understanding of heat transfer
  • Investigate the implementation of Planck's law for blackbody radiation in game physics
  • Learn about environmental effects on heat transfer in game design
USEFUL FOR

Game developers, physics enthusiasts, and anyone interested in enhancing realism in game mechanics through accurate heat transfer modeling.

lxXTaCoXxl
Messages
9
Reaction score
0
I'm a game developer and I have an idea to make something heat up and cool off and I would like to use realistic style formulas to do the math. Instead of making it add dramatically over time. I basically need a formula for adding and removing heat from a 2 dimensional vector based on acceleration. The idea is that when the player is moving, heat will be added, and when the player is not moving heat will be reduced. So a formula and a brief explanation of the formula would be a big help.

Thanks,
Jamie
 
Science news on Phys.org
Hello!

Heat transfer is a though thing. This heat process you describe is very complex and if you want to make it realistic you must acknowledge you are going into a bunch of physics. Heat transfer is mainly governed by three physical phenomena: convection, radiation and conduction. It really depends on what you are considering to "shout a formula" (such a thing doesn't even exist, actually). Modelling a game this realistically would take a lot of effort and depends on many factors such as the environment, what is around your object and even the weather.
 
Okay well I'm not wanting it that realistic really, I mean I want the rate of change to be realistically based on movement (like say friction or extreme pressure) for a perfect example you can't start a fire under water, so in the level that is water based the player's temperature grows colder while they are submerged, and while they are above the surface the temperature of the player increases (if the player gets too cold they begin moving slower, and eventually turn into a block of ice (cartoon style game) and loses a life. The first level is in space so I do believe fire isn't possible there (from what I remember space is a vacuum meaning no air, and no air means no fire since it's the main contributing factor to a flame) so it isn't as realistic as I made it out to be but I still want some of the basic physics formulas to apply; for example I visited the library on this site and found the following formula for heat that should help to add and remove slowly from the temperature of the player.

Heat
ΔU = Q + W
Q = Initial Heat
W = Work Done

That's how I understand it anyways. Thank you for your swift reply, please note I don't have an awesome habit of asking the correct questions for some reason.
 
Still there is a lot to take in account.

For space, let's see: the player will lose heat to space mainly by radiation. We would have to simplify this a lot, such as: considering a human being is made of around 70% water, let's make it a round ball of water. Also, this ball of water is in thermodynamical equilibrium at every timestep, that is, the temperature is always equal in the whole body of the player at any given time. Also, the player exchanges heat only by radiation and emits it spherically as a point, obeying Planck's law for a blackbody (this is a "formula" developed by Planck for a blackbody, which is a body that emits the largest amount of energy than any other at the same temperature). Then we would have to make an energy balance, which is basically the formula you put in there.

Even though there is a lot of simplifications involved the analysis I just made and it is probably not hard to implement in your code, you must know some physics to understand everything and this is just for one level (and space is probably the easiest one to model). Even though I have no experience in game design, I don't think the analysis I just made would be much more accurate than an intuitive and simple formula, such as "I believe the player will lose about 10 degrees Celsius in 7 seconds" and adjusting as you wish.

However, if you want to model everything physically, I believe that you should either have someone who knows physics to work with you (if you don't know, of course) or start digging into physics textbooks, specially thermodynamics (which will probably take much longer, but you'll gain knowledge).
 
Try search on "Newtons Law of Cooling"

it's good enough for everyday work.
 

Similar threads

Replies
7
Views
2K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K