I'm trying to figure out how to use normals of a target as Ray Direction in the Raycast node instead of the source's normals, so that my source wraps around the target as if I was using a Shrinkwrap modifier set to Target Normal Project.
Here's my setup:
I tried adding a Capture Attribute node between the Subdivision Surface and Raycast nodes set to vector with the Normal node plugged in and using that for Ray Direction, but that doesn't seem to do anything.
I also tried the same, but with the Transfer Attribute node, which kinda works, but the result is all jaggy because of the interpolation.
I thought about using the Raycast node in reverse, but I can't figure it out.
Here's an animation of two overlapping objects, one with the geometry nodes setup (yellow) and the other using shrikwrap (orange) wrapping around an not-selected wall. I want the yellow object to behave the same way as the orange one.
And here's how the Shrinkwrap modifier looks:





