I'm new to SL scripting and would like some advice from the more experianced scripters.
I can make an object rotate constantly by calculating the rotation vectors 1 Deg_to_Rad at a time and then using the llSetLocalRot function, placing this in a TRUE while loop. While this works, it doesn't seem very efficient to me. Is there a better way?
Thanks
=============================
float Rdeg = 0.0;
vector Vdeg = <0,0,0>;
default
{
state_entry()
{
while (TRUE)
{
if (Rdeg > 6.27) Rdeg = 0;
else Rdeg += DEG_TO_RAD;
llSetLocalRot(llEuler2Rot((vector)<0,0,Rdeg>
); }
}
}
===============================