# Attracting squishy curves

**URL:** <https://discourse.mcneel.com/t/attracting-squishy-curves/148643>\
**Category:** Grasshopper\
**Tags:** windows, kangaroo\
**Created:** [October 4, 2022, 2:55am UTC](https://discourse.mcneel.com/t/attracting-squishy-curves/148643 "2022-10-04T02:55:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![closedcurve](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/closedcurve/32/546537_2.png) [@closedcurve](https://discourse.mcneel.com/u/closedcurve)\
**Post date:** [October 4, 2022, 2:55am UTC](https://discourse.mcneel.com/t/attracting-squishy-curves/148643/1 "2022-10-04T02:55:32Z")

</div>

I didn’t want to revive the “water bubbles” thread but I do have some questions pertaining to it. I’m trying to [achieve a similar goal](https://discourse.mcneel.com/t/kangaroo-water-bubbles/100859/12) but with an attraction to a point (or attraction to each other AND a point) instead of a predictable gravity/load.

I was trying to tie them to a center point and it works initially, somewhat humorously, but falls apart, chasing the original vectors. It was a ham-fisted approach, I would love to know the proper method.

I’m trying to get as many tangent connections as possible, sloppy circle packing.

![blob attraction](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/f/9/6f9d8259a1bb6e9274f4388252f17d641903d315.gif)

[squishy crv att.gh](https://discourse.mcneel.com/uploads/short-url/783xb5W0lM4DUihd9hChVlsxQNO.gh) (16.5 KB)

Thanks for any advice.

---

<div class="post-metadata">

**Author:** ![DanielPiker](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danielpiker/32/666337_2.png) [@DanielPiker](https://discourse.mcneel.com/u/DanielPiker)\
**Post date:** [October 4, 2022, 9:04am UTC](https://discourse.mcneel.com/t/attracting-squishy-curves/148643/2 "2022-10-04T09:04:39Z")

</div>

It’s quite nice seeing them slide past each other, reminds me of the hand drawn animation work of one artist - can’t remember the name now - I’ll find it later.  
Anyway - to pull them towards a target, the easiest way I think will be to anchor a point in the center, then use lines from the polygons to this to apply tension. ‘Length’ goals would work here, but ‘ConstantTension’ is probably a better option, as it then pulls them all inwards with the same force, whereas the spring-like behaviour of length would pull the outer ones more strongly.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/5/8/6/586a2e7509b19c476b90968cc1dc230b24b4abc5.png)  
[squishy crv att.gh](https://discourse.mcneel.com/uploads/short-url/k8u1uXCmRIZQJygymYAsa4cvYuh.gh) (20.9 KB)
