Grasshopper

algorithmic modeling for Rhino

Hello Grasshopper community,

I was greatly inspired by one of Kristof Crolla's tutorial about Crowd behaviour using Hoopsnake (found on: https://wewanttolearn.wordpress.com/tag/hoopsnake/). Based on part of this tutorial, I am trying to create a similar behaviour inside a box defined by a Brep (using only the attraction and minimal distance in the script). I was wondering how I could limit this behaviour inside the initial Brep, like adding a «bouncing behaviour» when the points touch the box surfaces.

Here is my script so far: Boids_question.gh

Thank you,

Alex

Views: 397

Replies to This Discussion

use repulsion, but change it to repulse against point on brep. so:  closest point on brep--> vector 2 points --> unit vector etc.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service