Download

Setting up clock system with Sun sky

I am having a hell of a time trying to find the correct way to setup BPs for the new Sun Sky Actor to rotate the sun every second and display time. For one the Solar Time is set in military time and not in the 1-60 format time normally is but in 1-100. I thought about changing the directional light in the actor but it is inherited. I added a MapRangeClamped but time moves very erratically.

I just knocked this together:

Every second we run an event:

And move the sun:

It’s not gonna be great, because you can’t actually rely on the seconds being accurate, but it’s a step in the right direction.

The point is A) using time structures and B) converting from the structure to decimal format.

( DT is of type DateTime and this node:

node.JPG
is adding datetime to timespan )