Manipulation of the Distance Between Two Nulls when a third Null moves closer or further away.
Dear Community, I have the following problem/goal:
When object #1 gets closer to object #2, the distance between #2 and #3 must be reduced. (Object #3 should, however, always retain its position)

The following solution is not satisfying, because although the position is manipulated, the movement is not always oriented to the center (where object number 3 is located):
var p1 = thisLayer.position;
var p2 = thisComp.layer("Effector").position;
var delta = sub(p1,p2);
var distance = length(delta);
linear(distance, 0, 250, [value[0],value[1]+100], [value[0],value[1]]);
Thank you in advance for your expertise.
