Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetTextureAnim ROTATE not working?

Johnnie Carling
Registered User
Join date: 17 Aug 2007
Posts: 174
11-18-2007 12:25
Something very strange is happening to me.

Yesterday morning I'm working on a project and toss in a simple texture rotate script (See below) all good.

Now if I do the same thing the texture only rotates about 1/8 of a rotation before restarting. I have pulled the script out of the working object and put it in a new prim and it still does not work.

What the H is going on?

CODE

default
{
state_entry()
{
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP | ROTATE, ALL_SIDES, 1, 1, 0, 1, 0.5);
}
}
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
11-18-2007 13:10
That's actually correct behavior, as the length parameter (the 3rd and last instance of "1" in your example) is an angle measured in radians, so in order to spin all the way around it should be set to TWO_PI. Setting it to PI would be a half (180 degree) revolution, and "1" would be a bit less than a sixth. Must have been a glitch that made it appear correct yesterday.


edit: wiki link that covers all this stuff http://www.lslwiki.net/lslwiki/wakka.php?wakka=llSetTextureAnim
Johnnie Carling
Registered User
Join date: 17 Aug 2007
Posts: 174
11-18-2007 16:45
Thank you very much :-)

I should of known the fact it worked meant there was something wrong. heehee

the TWO_PI worked perfect.

Thanks again :-)