Cities: Skylines

Cities: Skylines

Moving Sun
colttenney 10 Apr, 2015 @ 5:45pm
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.
< >
Showing 1-9 of 9 comments
rmbackslash  [developer] 10 Apr, 2015 @ 6:32pm 
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  [developer] 10 Apr, 2015 @ 6:37pm 
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 10 Apr, 2015 @ 11:48pm 
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  [developer] 12 Apr, 2015 @ 2:45pm 
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 12 Apr, 2015 @ 4:10pm 
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  [developer] 12 Apr, 2015 @ 4:24pm 
Cool project. Can't wait to see it!
colttenney 12 Apr, 2015 @ 4:49pm 
I'm posting my progress here if you are interested
http://www.skylinesmodding.com/t/dynamic-building-orientation/199/4
;D 16 Apr, 2015 @ 1:21pm 
@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.
Last edited by ;D; 16 Apr, 2015 @ 1:22pm
colttenney 16 Apr, 2015 @ 2:40pm 
Originally posted by 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 ;)
< >
Showing 1-9 of 9 comments
Per page: 1530 50