Example: 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.
- Your own particle systems can be used to ignite the effects. 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
- Add “Particle Ignite” Component to your gameobject which has the particle system.
- Adjust IgnitePowerMultiplier and radius parameters
- Done. Now you can test the effect and adjust the parameters.
- 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 “Ignite effects by raycasting or by overlap sphere”
- Add a collider with a layer that rigidbodies and other objects do not collide with.