Cities: Skylines

Cities: Skylines

Moving Sun
colttenney 2015 年 4 月 10 日 下午 5:45
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.
< >
正在显示第 1 - 9 条,共 9 条留言
rmbackslash  [开发者] 2015 年 4 月 10 日 下午 6: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  [开发者] 2015 年 4 月 10 日 下午 6: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?
colttenney 2015 年 4 月 10 日 下午 11:48 
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  [开发者] 2015 年 4 月 12 日 下午 2: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?
colttenney 2015 年 4 月 12 日 下午 4:10 
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  [开发者] 2015 年 4 月 12 日 下午 4:24 
Cool project. Can't wait to see it!
colttenney 2015 年 4 月 12 日 下午 4:49 
I'm posting my progress here if you are interested
http://www.skylinesmodding.com/t/dynamic-building-orientation/199/4
;D 2015 年 4 月 16 日 下午 1:21 
@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 编辑于; 2015 年 4 月 16 日 下午 1:22
colttenney 2015 年 4 月 16 日 下午 2:40 
引用自 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 ;)
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50