Kinetic Facade

Hi. I want to make my facade rotation degree can be change by a point attractor similar like in this video https://youtu.be/1yQfzldvFno?si=IE-uxt02n5R5YU9O, then I will calculate sDA and ASE based on the sun attractor, but I dont know what to do. Can anyone help me?
RISET_Test.gh (226.1 KB)
Square Building.3dm (138.0 KB)