Hi I am currently learning ue4 and real time vfx, specifically niagara because I think its a really powerful system once you understand how it works. At the moment I am trying to implement a plexus effect,
like in this video;
But I am struggling with how niagara works. The way I understand the effect is that you need to measure all distances (with pythagoras?) to all particles at all times and than decide by a threshold variable if you want to draw a connection or not. Not really sure if this is the best way but at least it would be a starting point.
How can I access all particle positions in a module script? The way I understand niagara is that you can only get the values of the currently processed particle in a script.
I tried creating a struct with an array of vectors to write all the positions of all particles but as soon as I try to write to the struct in niagara ue4 crashes.
Would appreciate some help or ideas on how to achieve something like this in niagara.