Closed polyline with combined attraction force + obstacles


I have a closed polyline surrounding several polygons (smaller closed polylines) and would like to make it attracted to a point placed at its center while being repelled by the polygons inside of it.

I have managed to configure the attractive force but can’t seem to figure out how to set the Kangaroo solver so as it takes into account the inner obstacles

AR (17.6 KB)

Would love some help!

Hi @liukov.dobriev
You were very close, just the input to the Collider needed flattening (otherwise it only detects the collisions between items on the same branch), plus a few other small changes to the strengths.

AR (18.1 KB)

1 Like

Thank you (again!) for the prompt and clear reply. Cannot express how grateful I am for your help.