[Duplicate Post] Angle of rotation from distance from attractor curve

I’m trying to replicate the revolving bricks. I have used an attractor curve as seen below in the image.
Howerver, what i’m trying to replicate is more like the second image. I’m not very sure on how such a design can be achieved. Does anyone know how to do this? I’ve also attched my gh script. I deeply appreciate your help.