diff options
Diffstat (limited to 'bin/assets/ScriptsAssetSet/KanEd-Test05.lsl')
-rw-r--r-- | bin/assets/ScriptsAssetSet/KanEd-Test05.lsl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl b/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl new file mode 100644 index 0000000..86727cf --- /dev/null +++ b/bin/assets/ScriptsAssetSet/KanEd-Test05.lsl | |||
@@ -0,0 +1,30 @@ | |||
1 | default | ||
2 | { | ||
3 | state_entry() | ||
4 | { | ||
5 | llSay( 0, "Hello, Avatar!"); | ||
6 | vector startPoint = llGetPos(); | ||
7 | } | ||
8 | |||
9 | touch_start(integer total_number) | ||
10 | { | ||
11 | llSay( 0, "Touched." ); | ||
12 | |||
13 | // Define a rotation of 10 degrees around the Y-axis. | ||
14 | rotation Y_10 = llEuler2Rot( < 0, 10 * DEG_TO_RAD, 0 > ); | ||
15 | |||
16 | // now rotate the object 10 degrees in the X-Z plane during | ||
17 | // each loop iteration. note that each call to llSetRot | ||
18 | // causes a .2 second delay. | ||
19 | integer i; | ||
20 | for( i = 1; i < 100; i++ ) | ||
21 | { | ||
22 | // rotate object in the X-Z plane around its own Y-axis. | ||
23 | rotation newRotation = llGetRot() * Y_10; | ||
24 | |||
25 | llSetRot( newRotation ); | ||
26 | } | ||
27 | llSay( 0, "Rotation stopped" ); | ||
28 | } | ||
29 | } | ||
30 | |||