Cities: Skylines

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.
< >
Näytetään 1-9 / 9 kommentista
rmbackslash  [kehittäjä] 10.4.2015 klo 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  [kehittäjä] 10.4.2015 klo 18.37 
btw, I really like your solar panels:
http://gtm.steamproxy.vip/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  [kehittäjä] 12.4.2015 klo 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  [kehittäjä] 12.4.2015 klo 16.24 
Cool project. Can't wait to see it!
I'm posting my progress here if you are interested
http://www.skylinesmodding.com/t/dynamic-building-orientation/199/4
;D 16.4.2015 klo 13.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.
Viimeisin muokkaaja on ;D; 16.4.2015 klo 13.22
raresteak lähetti viestin:
@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 ;)
< >
Näytetään 1-9 / 9 kommentista
Sivua kohden: 1530 50