I`m new to Unity so please go easy:)
(and English is not my native Language)
Im trying to position a cube between the Camera rig and the sun (skybox) in VR. So when the sun moves, so does the cube. (Im using “Sunlight - Location based time of day” from asset store so I can speed up the sun movement and stuff like that.)
From what I understand I should be able to get the direction of the light Source, use those coordinates to position the cube.
Ive looked at all the Properties and Methods of the light, but havent found what Im looking for.
I`ve also looket at Properties and Methods on the camera but still nothing.
I was hoping for some way of Fishing out the direction of the light (0,0,0)
But I need to Catch the position of where the light is comming from.
Position of the player (camera) wasnt a problem, but since the sun is in a skybox it doesnt seem to have a position. The light itself only rotates, the position doesnt move.
Or am I such a noob that I don`t see you have served me the answer?
You don’t need the position of the sunlight only the direction also I don’t know what sort sky box you are using that works without a directional light.