Curve to Curve proximity goal

I’m trying to make a behaviour of different curves keeping a given distance (0 in my case) from each other. In a sense, they should be able to slide over each other but keep the distance close to the given value. It seems there’s no existing goal for this :confused:

The thing that comes to mind is to determine the segments of polylines that contain the proximity points and make all the points on the polylines move in a fashion that brings those segments close to each other.

Any ideas on how to achieve this?