I'm trying to create a geometry node setup that simulates dropping a bunch of objects from strings suspended from an overhead grid. The objects should stay in a fixed 200 x 200mm XY grid, but drop down to follow a surface that is curved. I would like each one to be "tied" to the overhead grid by a simple line curve (which I will later expand out into a simple cylinder mesh.)
My approach has been to create a grid, instance the hanging objects onto the points, then drop the objects down onto the guide surface using Raycast. This is working fine.
I then create a line curve orginating with the dropped objects.
This is where I run into problems: I have point A, and I know that point B should have the same (x,y) but an absolute/world Z value based on the original grid object. However, I cannot work out how to find/calculate/plug in the B point.
Any help or suggestions would be enormously appreciated.
Cheers Peter