Closed matshou closed 4 years ago
Just an idea of how this could work.
Note that the green box represents the player.
Time values based on this graphic:
That would work great in a 2D environment but I don't see how it would work in Minecraft. Our best bet would be to figure out the position of the sun relative to the player and then RayTrace
in the direction of the sun from players position and see if we hit a block.
Wow, you can do that? Well if that works lets go with that then.
If for some reason we can't, we could have the detection system be a dome, not an arc; and take into account the horizontal angle, not just the vertical as above.
It would greatly improve the temperature system by having a shadow/ray detection system to help implement a mechanic where shade/caves are able to provide relief by reducing the temperature.