1. Home
  2. Docs
  3. Ignis
  4. Tutorials
  5. Extinguish flame using your own particle system

Extinguish flame using your own particle system

Example Use Case:  You want fires to be extinguished by your own water particle system for example for firefighter simulation.

Example in Demo Scene: Interact->Water will extinguish one fire after the demo scene has played for a while.

How to Implement:

  1. Your own particle systems can be used to extinguish the flame. The extinguish effect is done using particle collisions and can be used with any custom particle system.
  2. First you need to make sure that your particle system:
    1. Has enabled Collision
    2. Has collision type-> World
    3. Has enabled Collision->enable dynamic collisions
    4. Has enabled Collision->Send collision message
  1. Add “Particle Extinguish” Component to your gameobject which has the particle system.
  2. Adjust particleExtinquishRadius and incrementalPower parameters
    1. Should be low with high number of particles
    2. Should be high with a low number of particles.
  3. Done. Now you can test the effect and adjust the parameters.
  4. Note that if you don’t have any colliders (triggers don’t count) on your object particles cannot detect collisions. In this case:
    1. Use the raycast method explained below
    2. Add a collider with a layer that rigidbodies and other objects do not collide with.

Leave a Reply

Your email address will not be published. Required fields are marked *