# heat effect

**URL:** https://discussions.unity.com/t/heat-effect/398786
**Category:** News & General Discussion
**Created:** [September 28, 2009, 12:27pm UTC](https://discussions.unity.com/t/heat-effect/398786 "2009-09-28T12:27:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![anon\_43322765](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon\_43322765](https://discussions.unity.com/u/anon_43322765)
#### Post date: [September 28, 2009, 12:27pm UTC](https://discussions.unity.com/t/heat-effect/398786/1 "2009-09-28T12:27:55Z")

</div>

Hi,  
I’m new to game programming and unity.

I would like to know if there is a heat effect that can be applied to an object like a fire and this in turn will cause near by objects to burn and eventually become destroyed.

Thanks 🙂

---

<div class="post-metadata">

### Author: ![Martin-Schultz](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/martin-schultz/32/572373_2.png) [@Martin-Schultz](https://discussions.unity.com/u/Martin-Schultz)
#### Post date: [September 28, 2009, 1:03pm UTC](https://discussions.unity.com/t/heat-effect/398786/2 "2009-09-28T13:03:18Z")

</div>

Detonator lets nearby objects get on fire, maybe a good starting point for you:

[http://blogs.unity3d.com/2009/09/17/summer-of-code-detonator-framework-released/](http://blogs.unity3d.com/2009/09/17/summer-of-code-detonator-framework-released/)

---

<div class="post-metadata">

### Author: ![Martin-Schultz](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/martin-schultz/32/572373_2.png) [@Martin-Schultz](https://discussions.unity.com/u/Martin-Schultz)
#### Post date: [September 28, 2009, 1:03pm UTC](https://discussions.unity.com/t/heat-effect/398786/3 "2009-09-28T13:03:58Z")

</div>

And here:

[http://unity3d.com/support/resources/unity-extensions/explosion-framework](http://unity3d.com/support/resources/unity-extensions/explosion-framework)

---

<div class="post-metadata">

### Author: ![anon\_43322765](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon\_43322765](https://discussions.unity.com/u/anon_43322765)
#### Post date: [September 28, 2009, 1:14pm UTC](https://discussions.unity.com/t/heat-effect/398786/4 "2009-09-28T13:14:50Z")

</div>

no iPhone support ☹

---

<div class="post-metadata">

### Author: ![Maker16](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@Maker16](https://discussions.unity.com/u/Maker16)
#### Post date: [September 28, 2009, 1:47pm UTC](https://discussions.unity.com/t/heat-effect/398786/5 "2009-09-28T13:47:40Z")

</div>

How detailed do you want to get with it? It can be done with scripting. You could make it something basic like, when an object touches the flame, it catches on fire, then burns for 15 seconds, then is destroyed.

Or you can get more technical and give the fire a radius of effect with a heat gradient (so, the closer to the flame, the hotter it gets). Then you can have any objects within the flame’s radius of effect gradually build up heat. Give the objects an ignition temperature (paper would be low, wood would be much higher), and when the accumulated heat reaches the ignition temperature, it bursts into flames.

As far as how long it burns, just give it a rate of combustion somewhere on a scale of 0-1, give it a variable for combustible material that starts at 1 and decreases every second it burns at the rate of combustion. When combustibleMaterial hits 0, object is destroyed. Heck, you can even have it transition through textures as it burns to simulate increasing charring.

You can get as detailed or simplistic as you want. It just depends on what is the simplest form that meets your needs in the game.

Also, without understanding the workings of them too well, you’d probably want to use a mesh particle emitter for whatever catches on fire.

---

<div class="post-metadata">

### Author: ![anon\_43322765](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon\_43322765](https://discussions.unity.com/u/anon_43322765)
#### Post date: [September 28, 2009, 1:57pm UTC](https://discussions.unity.com/t/heat-effect/398786/6 "2009-09-28T13:57:20Z")

</div>

Hi Maker16.  
I guess it needs to be relatively simple to start with.  
The way you described is exactly what I envisaged but due to my newbie status figured I would first check for a prefab.  
The radius effect sounds perfect.

I would appreciated any tips on how to go about scripting this myself.

Thanks

---

<div class="post-metadata">

### Author: ![anon\_58293003](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@anon\_58293003](https://discussions.unity.com/u/anon_58293003)
#### Post date: [November 30, 2009, 8:11am UTC](https://discussions.unity.com/t/heat-effect/398786/7 "2009-11-30T08:11:50Z")

</div>

How can I get damage of local object, near by explosion ?

---

<div class="post-metadata">

### Author: ![andeeeee](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@andeeeee](https://discussions.unity.com/u/andeeeee)
#### Post date: [December 1, 2009, 5:24pm UTC](https://discussions.unity.com/t/heat-effect/398786/8 "2009-12-01T17:24:34Z")

</div>

> [@""](#):
>
> How can I get damage of local object, near by explosion ?

You can use [rigidbody.AddExplosionForce](http://unity3d.com/support/documentation/ScriptReference/Rigidbody.AddExplosionForce.html) to throw an object as if it were struck by an explosion, but simulating the damage is more difficult. One way to go is to have several smaller objects joined together and then throw them apart when the explosion occurs.

---

<div class="post-metadata">

### Author: ![anon\_58293003](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@anon\_58293003](https://discussions.unity.com/u/anon_58293003)
#### Post date: [December 2, 2009, 6:24am UTC](https://discussions.unity.com/t/heat-effect/398786/9 "2009-12-02T06:24:00Z")

</div>

THANKS !!!  
🙂
