Grasshopper

algorithmic modeling for Rhino

Hey Alex,

I'm experimenting with Quelea, very impressive btw. I'm interested in trying to apply a 'force' depending on what part of the environment the agent was physically located. I'm not sure if multiple environments are the right terminology for this. Think of the classic Venn diagram.

To clarify, I want to have volumes or areas within the overall environment that would have a different set of rules. For example the agents may try to separate from one another but as they move through a subset area (perhaps brep) an attraction force would take over. I see you can use the vision radius to control the range of effect the different forces has on the agent but can this also be controlled by another input. In this case their physical location? Or perhaps you've got a work around?

If you have any example files or tips that may be relevant it would be very appreciated.

Thanks.

Views: 635

Replies to This Discussion

Of course I posted this entry at about 6:30 and then walked out the door on the way home. Within about 5mins of walking around in the fresh air I worked out what I should have been doing.

Essentially the solution I'm using is to control the simple 'Apply' boolean of each force based on a test of the quelea's current position and a arbitrary brep.

Hi Mat,

I'm happy Quelea has been useful for your work. It's actually pretty easy to do what you are asking since each force has a boolean on whether or not to actually apply that force for each timestep. So if you only wanted to apply a force within a region of space, you can

1. get the quelea's position, 

2. check to see if that point is inside a brep or curve with the standard grasshopper Point In Brep/Region components.

3. Feed the output boolean list into the apply? parameter for the force.

You can see it in action in the promo video at 2:21.

Best of luck and don't hesitate to reach out to me as you keep exploring the possibilities with Quelea.

Best,

-Alex

Sorry I didn't see your comment until I posted this. Glad you were able to work it out on your own :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service