|
I am making an fps with some friends, and the first scene is a forest. I would like to have the ability to set the forest on fire, similar to far-cry 2. More specifically, I want a single fire particle system to spread out, maybe by spawning clones next to it, then eventually die. I have no idea where to start with this. I have the particle system set up, but I just need the script. If someone can just give me something to start with and point me in the right direction, I can go from there. Thanks, MeatbagWammo
(comments are locked)
|
|
Use the Particle EMitter. It was created for such effects: http://unity3d.com/support/documentation/Components/comp-ParticlesGroup.html To make the fire spread: Change the elipse size you want. To make "Clones" just identify the number of particles you want it to emit. To make it disappear, set the time you want the particles to last. To make the fire bigger, set the size you want it to increase to. Finally, attach a script to destroy the emmitter object once you re done with your effects. I'm not sure that the ellipsoid scaling can be done through script
Nov 08 '10 at 02:42 PM
VS48
This does not work. The ellipsoid parameter cannot be changed via scripting.
Mar 05 '12 at 11:19 PM
codingking
(comments are locked)
|
|
1) Put a sphere mesh into your scene 2) Remove all components except the MeshFilter from it 3) Add a mesh particle emitter component to the sphere (See instructions here, also add an animator and particle renderer) 4) Your sphere should now be emitting particles. Adjust the particles so they look like fire or however you want. 5) Create a new script and attach it to your sphere. The script to scale your fire could be as simple as:
(comments are locked)
|
|
I added the sphere mesh and mesh particle emitter and it worked very well for me. Remember to select "interpolate triangles" in the emitter to avoid only emitting particles from the vertices. Here's the source code I used (Javascript): } didn't work for me :(
2 days ago
kakuridoji
(comments are locked)
|

....MeatbagWammo?