Skip to main content
6 events
when toggle format what by license comment
Nov 2, 2022 at 14:48 answer added John B timeline score: 1
Oct 30, 2022 at 15:54 comment added Michael Macha @DMGregory I'm thinking the second one, in the spirit of stack exchange; but first I need to actually implement it in practice, which might take a little time. Again, thank you for the help.
Oct 30, 2022 at 15:39 comment added DMGregory You can click the delete link if you no longer need help with this. Or, if you are able to apply the advice found via astronomy sources to a working solution for your game, you could post that solution as an answer to help other devs who also want to implement time of day features.
Oct 30, 2022 at 15:32 comment added Michael Macha @DMGregory An excellent point! Thank you for the link, it did feel like I was missing something overt. I'm willing to close this question, and wish I could give you credit for the solution.
Oct 30, 2022 at 15:02 comment added DMGregory Unity does not do dawn or dusk, that's a concept introduced by your game, not the engine, so it has no default. It sounds like what you want is to calculate the position of the sun in the sky, based on time of day/year, so you can shine the light from that angle. This is a question for the Astronomy StackExchange, where it has already been asked. Users there linked to this Wikipedia article outlining the steps.
Oct 30, 2022 at 14:54 history asked Michael Macha CC BY-SA 4.0