# Query Grasshopper

I am trying to play with boids /swarms, I have taken a challenge to create a canopy based on boids movement but I am getting errors on the way, can somebody please have a look at the code and tell me know what is wrong in the code or what am I doing wrong.

Boids Canopy.gh (8.4 KB)

No response

Firstly these â€śminorâ€ť issues should been addressed:

BTW: Obviously this is not written by you. Who did it used a Map Method: (but what he means? RhinoMath has no such a Method);

Or he means a classic Remap ? Like:

Various other Methods out of the blue are used. Like:

Maybe he means:

if(steering.Length>maxForce) { steering.Unitize(); steering *= maxForce;}

Tip: provide some sort of sketch related with what you are after (what about K2?)

@benav97163 is this code generated by some AI tool?

3 Likes

I hate computers (these and the others). Moral: Math.Pow(Yikes, Yikes);

BTW: Fixed the stupid things. Prior dealing with vars â€¦ well â€¦ what exactly does that thing?

Update:

could you please share the GH script here! Thanks a lot!

Get the useless thing (but if - as Daniel said - this is done via some stupid AI thing â€¦ well â€¦ better recycle it ASAP).

BTW: Itâ€™s waaaaaaaaaaay better to expose your goal (in detail) â€¦ and weâ€™ll see what could be a rational way to cut the mustard.

1 Like

Thank you so much for this. I really appreciate your effort for this! So to brief - Iâ€™m currently working on a project where Iâ€™m creating a visually appealing canopy using boids. Whatâ€™s really cool about this is that the movement of the boids can actually change the shape of the canopy! Essentially, Iâ€™m using the principles of boids to simulate human movement and interaction, and using that simulation to design a canopy that has a really organic, natural look to it. Can you help mw with that! @PeterFotiadis

Well â€¦ my top C# Gurus (of Gurus (of Gurus)) did a re-examination/re-evaluation of that thing. They said &@#@#@ (and &&&&##@\$#@). Meaning that thereâ€™s no â€śbaseâ€ť to start (not to mention to end).

1 Like