Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Texture texture_rotate__with_llRotateTexture  

texture_rotate__with_llRotateTexture

texture rotate with llRotateTexture + timer example.lsl

Category: Texture
By : Green Fate
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for texture_rotate__with_llRotateTexture
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. texture_rotate__with_llRotateTextur_1.lsl
1
2 // chunk of code that rotate a texture.
3 // Green Fate + ixO Baskerville
4
5 float rad = 0.0;
6 float radinc = 0.05;
7 float time_inc = .2;
8 float rotspeed = 3.2;
9
10 default
11 {
12
14 {
15 // llSetTimerEvent( time_inc );
16 llSetTextureAnim(ANIM_ON | ROTATE | LOOP | SMOOTH, ALL_SIDES, 0, 0, 0, 100, rotspeed);
17 }
18
19 timer()
20 {
21 if( rad < 6.28318530717958 )
22 {
23 rad = rad + radinc;
24 }
25 else
26 {
27 // llSay(0, "6.28318530717958 or something");
28 rad = 0;
29 }
30 // llRotateTexture( rad, 0 );
31 }
32 }// END //

Back to the Best Free Tools in Second Life and OpenSim.