Download

Sun relative rotation

Hi,

i’m currently working on a blueprint witch rotates the sun around the world.

The problem is, the sun rotate only on the y-axis(roll). The x-axis(pitch) not work.

Can anyone help me pls?

Are you sure its not working? I think you change roll, pitch and yaw equally. So it seems to be only roll.

I’m currently using this blueprint, but you can obviously change it to your needs.

https://www.dropbox.com/s/trdwfdrgwgw17iu/daynight.jpg

EDIT:

Actually, thinking about it, it would be better to replace the timeline node with a “Get World Time” node, as it will be affected by time dilation, game pause, etc.