Page 1 of 1

Light Angle

Posted: Sun Jan 08, 2012 5:09 pm
by spike0314
Hi
Ive been trying to rotate a light. but there is no function for that only LightLookAt but i don't want it to look at anything just turn. so how can this be done?

Cheers

Re: Light Angle

Posted: Sun Jan 08, 2012 5:51 pm
by Shield
Just use an imaginary point in space at an arbitrary distance from the light and rotate that point around
the center of the light yourself using Sin / Cos functions and then use LightLookAt to rotate it. :)

Don't have time to create an example at the moment, sorry.

Re: Light Angle

Posted: Sun Jan 08, 2012 8:00 pm
by Comtois
You can attach a light to a node and rotate the node.

Re: Light Angle

Posted: Sun Jan 08, 2012 8:16 pm
by spike0314
yeah just found that out :D
Thank you.