Move mesh vertices iteratively

Hello,
I’m doing this C# code where the mesh vertex moves closer to closest attractor point.
However when move the attractor away the mesh goes back to it’s previous state.

What I want is : prevent the mesh from updating back to any old position and have the mesh get more attracted to the point with everymove I make.
Can anyone help me with that ?

Thanks,
Youssef.


23-10-18-MeshDeform.gh (12.5 KB)