Form Finding (with Kangaroo2 possibly)

Hi. I have a bunch of points and lines and I’m trying to get these points and lines to self organize in regards to distance. My points and lines are in 2d but I’d like to figure out how I can get them to organize into 3d. The points would need to stay with the lines they are connected to. I’m a little stumped. I was thinking I’d use Kangaroo2’s Length (line) node but that wouldn’t move the points. I’d be very grateful for any ideas you might have.

You’ll need to define the kangaroo goals by which those points would move, in addition to the line lengths.
Something like this: pointnetwork_forum.gh (10.0 KB)

Thank you for the suggestion. Looks like it’s getting complicated on my end.