I’m currently working on a blueprint witch rotates the sun around the world.
For that I calculated two variables called ‘Altitude’ and ‘Azimuth’ like in the picture above.
My Problem is when I update the rotation like in the following picture, I rotate the sun in
its own system. But I need to rotate it relative to the observer.
In the last picture I want to show you how it currently is and how it should be.
The red line shows the rotation, if I only update the pitch with the altitude variable.
The green line shows the rotation, if I also update the yaw with the azimuth variable.
The yellow line shows how it should be.
I hope you know what I mean.
What can I do to fix it?