Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetSunDirection()

Andy Enfield
Hippo Technologies CEO
Join date: 22 Nov 2005
Posts: 79
04-23-2006 07:49
Trigonometry always gives me a headache; could anyone offer me a quick tip (or even a script example) of how to easily work out if it is dark or light based on llGetSunDirection() --- I want to have the lights in my garden come on automatically with darkness.

Sorry if this is an obvious question, but vectors are a pain :)

Many thanks.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-23-2006 08:19
/54/39/96855/1.html
Andy Enfield
Hippo Technologies CEO
Join date: 22 Nov 2005
Posts: 79
04-23-2006 08:21
Thanks, Void. I searched long and hard but missed this.