Calculate distance with subpatch logic?

ciao all,

i would like to build a spreadable subpatch which generates for each slice a particles which behaves accordingly to the distance to each other particle.

if you do things like this in textual programming languages, normally you do this with 2 loops … first loop runs over the the count of the particles and the secound one checks each with each other. but how to do this like that in VVVV?

(without ODE simulation cheating)

with Cross (2d) … there should be somewhere in the forums a patch from me that is doing simple collision detection with spheres. i think the logic in it is what you are looking for.

found it:… no text …

sphere collision.v4p (35.1 kB)