I'm trying to combine information about original position with information I get from proxymity node, to "wrap" object with spiral curve. Unfotunately for some reason it doesnt work 100% right, there are some places where curve just doesn't follow target. Am I doing something wrong? Any ideas how I can fix this setup?
You can't specify a direction with The Geometry Proximity node. It will compute the closest geometry element to each vertex.
Here's what happens :
Some vertices are not pulled in the XY plane because the target geometry that is closest to it is higher or lower on the Z axis. Thus the artifacts.
What you can do with the spiral curve, is to use the Raycast node which takes a field direction input. Taking the opposite of the position of the vertex and projecting it on the Z = 0 plane will wrap the spiral correctly.