Hi hamoid,
Thanks for spotting this issue. On my computer AttractionBehavior2D
doesn’t exist so I have to stick with AttractionBehavior
. Anyway that import is not really important since I’m using it for setting the behavior of the very first cell only.
You’re right , collection[-1]
and collection[-2]
were refering to the wrong cell objects. I’m now iterating through another array list that contains every mother-child couples to fit the order of physics.springs
. (There must be a clever way to do this though).
Yet, I still end-up with overlapping cells.
I truely wonder how Satoru Sugihara (author of the iGeo library) did to avoid any overlapping in his sketch