Cities: Skylines
Moving Sun
Sun position
Hey man good work with the mod. I am currently attempting a mod of my own and was hoping you could give me a hand. I need to get the angle of the sunlight, and do some math with it. I can see and edit the euler angles for sunlight direction in modTools but I can't seem to find a function that retrieves the current angle of the sun. I was hoping you might know since you have experience with the sunlight. Thanks in advance and sorry about posting this here, it was the only way I knew how to contact you.
< >
Сообщения 19 из 9
rmbackslash  [Разработчик] 10 апр. 2015 г. в 18:32 
Hi colttenney. Thanks for checking out the mod. So the angle of the sunlight is the angle of the Unity "DirectionalLight" object. There's only one in the game. Just do a GameObject.Find("Directional Light").transform
rmbackslash  [Разработчик] 10 апр. 2015 г. в 18:37 
btw, I really like your solar panels:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=419052551

Are you going to make them point at the sun?
Yes I plan on making those panels rotate to face the sun and also have these http://imgur.com/a/yOdMf panels rotate to accurately reflect the sun to the tower. Thanks for the snippet. Right now it seems the communities best aid comes from the community itself :)
rmbackslash  [Разработчик] 12 апр. 2015 г. в 14:45 
That's realy cool I look forward to using them when I stop modding, and start playing again. Can you put scripts on assets? Or are you making a mod that works with the assets?
I dont know of a way to script assets but I'm designing the mod to work in conjunction with the assets. I'll have to make and upload a different solar panel asset that will work specifically with the mod.
rmbackslash  [Разработчик] 12 апр. 2015 г. в 16:24 
Cool project. Can't wait to see it!
@colttenney absolutely brilliant.

I have Moving Sun and use your solar panels as my primary energy source and with that dynamic orientation it will be amazing.
Отредактировано ;D; 16 апр. 2015 г. в 13:22
Автор сообщения: raresteak
@colttenney absolutely brilliant.

I have Moving Sun and use your solar panels as my primary energy source and with that dynamic orientation it will be amazing.

I think so too ;)
< >
Сообщения 19 из 9
Показывать на странице: 1530 50