In the last episode of the unreal engine 5 open world series, We worked on a time of day system. Time is represented by the sun moving across the sky. But we had trouble changing the sun rise direction as we faced issues with gimble lock. The system which set the sun's direction glitches when we have a different sun rise direction than yaw 0. Here we are going to implement a system to work around the gimble lock issue so that we can set any direction as need as the sun rise direction.
Project Files: https://www.patreon.com/posts/76625594