generative modeling for Rhino
I am attempting to create a simple swarm model simulation in Grasshopper, via Rhino using the Kangaroo plug-in however I keep coming across problems managing the various points which make up the swarm.
Is there a way to measure the distance between two moving points (under the influence of a Uforce node), to take that distance which is constantly updating and run it through a ‘larger than’ node with a set variable. Hence when the two points who are moving in opposite directions, reach a set distance (the variable), they change direction?
It sounds complicated, any ideas how I could achieve this?
Thanks anyone who can help.