Geometry Nodes- Proximity or Raycast without flattening out vertices


I’m working on a node network for piers for a bridge. They are instanced on a curve and I want them to adjust their height according to the distance between the terrain and the curve. So basically I want to move the bottom verts in -Z to fit to the terrain.

I have this mostly working but at the bottom you can see all the vertices flatten onto the terrain instead of maintaining the depth in the original geometry. Is there a simple way to fix this? I must be missing something!

1 Like