Good day!
I’m trying to make dust in the light from the flashlight in the player’s hand. I do this with the help of a Particle System with simulation in World Space. In general, if the player stands still, everything looks great. But when the player moves, the effect of drawing with particles occurs, associated with the lifetime of the particles.
Is it possible to somehow track the exit of a particle outside the shape (in my case, a cone), and then remove it?
Or can you only create a special collider (for example, from several spheres to get closer to the shape of a cone, since unfortunately there is no cone primitive in Unity) and track the exit of particles from it?
Another option came to my mind: create a particle system that fills the entire level with dust particles. They are slightly visible by default. But when they hit the flashlight collider, the particles change to bright yellow.
Please tell me which of these options are feasible?
Is there a smarter way to do this?