Download

Break Sun Position Data - Weird Float

Hey All,

I seem to be experiencing some calculation errors with breaking down sun position data. I have my day night cycle using the sun position calculator. Everything is working great except occasionally while the sun is playing through its timeline it seems to “bounce”. Due to this, I outputted the elevation breakdown into the console. For some reason the elevation will go from 201.077713 to 200.844666, or for instance 203.208511 to 202.975906. It should continue to increase, not roll back. I will post screenshots of console output and calculation blueprints. Why is it doing this and how would I go about fixing this bug?

bug1.jpg

bug elevation return.jpg