Facade panels perpendicular to sun vector

Hi

I am currently working on a façade with solar panels.

To get the biggest energy yield from the sun, the panels have to 'face' the sun.

The panels are moving when the vector moves.

The panels only have to rotate in the horizontal direction.

The panels have a diamond shape (so they do not block the sun for other panels), have to be perpendicular to the suns vector.

I was trying to do it with origins and planes but it does not work.

Does anyone know how I can do this?

I attached 2 pictures of how I want the script to work.

Hope someone can help me!

Thanks!

Henk

  • up

    David Rutten

    Well they can't be truly perpendicular if you only allow rotation along one axis. In that case they can be at most perpendicular in a 2D slice of the 3D space. It probably makes sense to pick this 2D slice as being the central symmetry plane of each panel.

    I attached a file which measures the sun angle in the symmetry plane of each facade panel, then rotates around the top edge with an angle limit to prevent rotation less than zero and more than 90 degrees.

    5
  • up

    Henk_88

    the files