How would i make realtime Moon + Sun position?

how would i make a system to show the real time position of the sun and moon by using the players country (in a single player game or just the first person to join the server)

3 Likes

This looks like a good way to set the position: Real Sun Path | Realistic Sun Movement and Longer/Shorter Days!

Looks like it needs you to set the longitude and latitude manually. You can use GetCountryRegionForPlayerAsync and then have a lookup table where you find the coordinates for a given country code.

3 Likes

yes i have seen that not long after the post and it works well and thank you for the idea of country region, but how would i do something similar for the moon?

1 Like