Question About Using Vertex Groups And Geometry Nodes

I was working on a procedural in Blender’s geometry nodes when I hit a bit of a roadblock. What I am trying to do is, while using geometry nodes, have Object 1 rotate towards Object 2 while also moving forward at a constant rate in the direction it is rotated. This on it’s own has been fairly simple to accomplish, however, since Object 1 is constantly moving, whenever the mesh winds up going past Object 2 it doesn’t rotate to turn back towards object 2’s location. I was wondering if there was any way I could pull this off as I have attempted quite a few different approaches to this idea but none have worked thus far. Does anyone else know how I can go about this?

You can compute a vector that represents the direction in which Object 1 is supposed to go, that way it’s just a direction forward and it shouldn’t change when OB 1 goes beyond OB2 because it’s computed in the beginning and there isn’t a notion of going beyond then…

And this vector which is computed in the beginning should always be pointing towards OB 2? This vector’s location should be tied to the location of OB 1, so it always points towards OB 2, am I reading this correctly?