|
Quixotic Hermit
Registered User
Join date: 9 Nov 2008
Posts: 65
|
01-13-2009 18:01
Ok, so I am using the standard anim SMOOTH script with rotate for a dance floor. However, no matter what my settings are, there always seems to be some kind of reset. Right now, it will rotate smoothly for 540 degrees and then do a reset. I have tried various settings and I can't seem to fix this to where it continuously rotates without a reset. Here is the simple script:
default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 0,1,1,0,10,1); } }
The prim is a flat cube, 10m in size for x and y coordinates. The current settings rotate at the speed I want it to but, like I said, after 540 degrees, it resets and I can see it visually resetting. Is there a way around this? All I want it to do is continuously rotate without a reset.
Thank you!
|
|
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
|
01-14-2009 02:28
Hi, For texture rotations the start and length values are in radians, and PI = 180 degrees. To rotate without a "jump" you need to tell it to rotate 360 degrees. Change the length value 10 to TWO_PI: default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 0, 1, 1, 0.0, TWO_PI, 1); } }
~Boss
|
|
Quixotic Hermit
Registered User
Join date: 9 Nov 2008
Posts: 65
|
01-14-2009 04:12
From: Boss Spectre Hi, For texture rotations the start and length values are in radians, and PI = 180 degrees. To rotate without a "jump" you need to tell it to rotate 360 degrees. Change the length value 10 to TWO_PI: default { state_entry() { llSetTextureAnim(ANIM_ON | SMOOTH | ROTATE | LOOP, 0, 1, 1, 0.0, TWO_PI, 1); } }
~Boss GOT IT. Yes, I remember reading about rotation being based in radians. Thank you for reminding me. I appreciate your help!
|