Grasshopper

generative modeling for Rhino

Hey,

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.

Tags: flock, kangaroo, larger, moving, points, swarm, than, two, uforce

Views: 343

Reply to This

Replies to This Discussion

Thanks, that is perfect. Just one thing, I am unable to reset the timer to anything below 20ms? Any ideas why?

Don't worry, silly error on my part, all good now.

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service