Niagara: how to access to the positions of all other particles within an emitter

I’m trying to create a Niagara particle simulation where each particle programmatically changes its velocity depending on the density of the particles. But how can I access the density information within an emitter?

Maybe, it is possible to temporarily store the density information in a 3D texture?
Or, is it possible to count the number of particles in a region, say a bounding box (0,0,0) to (1,1,1)?

is there a get function for all particles in an emitter tied to a certain property value? for instance, can you get the value of density for all particles at a certain density or higher (or within a density range) and alter those particles’ velocity with a trigger or function call? I’m new to Niagara, so I’m not sure exactly how it would be set up.

You can get particle data into a blueprint via this method (just translate the page with google translate)
http://papersloth.hatenablog.com/entry/2020/08/01/112604

1 Like