dual-universe / lua-examples

This repository has been created to serve as a sharing and learning platform for the Dual Universe community and the development of simple and complex Lua applications. You will find on this repo the examples released by Novaquark during the devblog and thread.
https://www.dualuniverse.game
GNU General Public License v3.0
59 stars 19 forks source link

getHeliosPosition() #11

Open CarstenKaul opened 1 year ago

CarstenKaul commented 1 year ago

I need a variable of the actual position of helios to calculate the sunrise of the actual player position. Or something else thats let me calculate the start/end of the day/night-cycle at the player-position.

NQ-Ligo commented 1 year ago

I like the idea, let me see if we can provide you a sun direction vector (the sun is on the skybox).