Point Attracting a body

I want to take a body and attract it and scale it appropriately to a point. I have created point attractor patterns but have not been able to figure out to attach a body to the grasshopper algorithm. I would really like some grasshopper wizard to help me out with this!

Hi
you should upload internalized “gh” file

yes how are we able to see what you need without looking at the file. and reference pictures?

1 Like

The general case of this (N Bodies, M Attractors) is a variation of the classic NBoby problem with the difference that instead of gravity (Body VS Body) you have forces (push/pull) due to the attractors (and/or gravity as well). Obviously mass and collisions (and what happend next - as an user option - i.e just “pack” or fusion or elastic-plastic collisions … etc etc) is a must for some realistic result. See some ultra simplified NBodies examples:


You can attempt to deal with that via K2 … or (waaaaay better/faster) you should write “some” lines of code (examples shown are using C#).

1 Like