Example Use Case: You have a mage that can cast a fire spell which uses a particle system. You want the environment to catch fire from the spell.
Example in Demo Scene: Interact->Fire ignites the oil in the front.
How to implement:
- Your own particle systems can be used to ignite the flame. The ignition effect is done using particle collisions and can be used with any custom particle system.
- First you need to make sure that your particle system:
- Has enabled Collision
- Has collision type-> World
- Has enabled Collision->enable dynamic collisions
- Has enabled Collision->Send collision message
3. Add “Particle Ignite” Component to your gameobject which has the particle system.
4. Adjust IgnitePowerMultiplier and radius parameters
5. Done. Now you can test the effect and adjust the parameters.
6. Note that if you don’t have any colliders (triggers don’t count) on your object particles cannot detect collisions. In this case:
- Use the raycast method explained below
- Add a collider with a layer that rigidbodies and other objects do not collide with.