Determining neighbor particles with threshold

Hi,

I’m just getting started with vvvv and I’m a bit stuck.

A fairly common effect in Processing is to draw a line from a particle to all neighbors within a threshold distance (e.g https://vimeo.com/73233807).

So, I set doing the same thing with a few boids as my learning project. However, I have no good idea how to go about this.
In code, I would probably build a grid to determine all neighbors within a threshold radius and then connect to those. In vvvv, I don’t even know how to do this in an inefficient way.
I already looked at the contributions, but couldn’t find anything there either.

Thanks

  • marcel

Have a look at: siftnearmost-(2d)

To reply to my own question: I was basically looking for ConnectAll (which unfortunately lacks proper tags, so beginners have a hard time finding it).

1 Like