Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetRot not doing anything

Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
09-25-2007 23:37
Please drop this code into the touch_start of a fresh cube with a new script and tell me if it does what you think it should do.

rotation r = llGetRot();
llTargetOmega( <1.,0.,0.>, TWO_PI, 1.);
llSleep(5.2);
llTargetOmega( <1.,0.,0.>, 0., 1.);
llSleep(2.);
llSetRot( r);

I think it should rotate for five seconds, stop, wait two seconds, and restore its rotation to its original position. It rotates, but doesn't restore to the original position. That is, the llSetRot doesn't seem to do anything.

Any idea why?

Thanks,
Anya
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
09-26-2007 00:19
bug.

fly up like, 200m, then back down and your object should have "rotated".

In this case the server does not send an update to the client it seems.
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
09-26-2007 05:24
Yea, this is yet another old bug...you can *force* the client to get an update with scripted movement calls that come after the object is rotated, but other than that it's just kind of hit and miss...the object is doing what you told it to, but you just aren't being shown by SL that it has done it.

Also, usually if you right-click and choose Edit, you'll see the object snap to its correct position on your screen.
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
09-26-2007 06:40
Thanks for the confirmation. Combined with the "target omega does nothing until you interract with the object" bug, I guess objects just weren't meant to rotate.
Savant Hax
Registered User
Join date: 26 Jun 2007
Posts: 7
09-27-2007 12:32
The number of search results that comes up with the words 'llSetTargetOmega' and 'bug' is really quite astounding.

LL, why is this so hard (impossible?) to do right?

-Savant Hax