Custom shrinkwrap modifier using geometry nodes?

I was wondering if it is possible to recreate the shrinkwrap modifier in geometry nodes, and if so how? I basically need the shrinkwrap modifier altered slightly, which is why I need to create it in geometry nodes.

You could start with this:

the object input to the node is the target mesh

Thx it works! How would I add the functionality to do it only to a certain vertex group? I’m still new to this sorry

where “Group” is the name of the vertex group

Maybe this is not the most efficient setup: basically, I compute the difference between the position before and after shrinkwrap, multiply this difference with the group weight, and add it to the position before shrinkwrap.