diff options
author | UbitUmarov | 2015-09-01 11:43:07 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-01 11:43:07 +0100 |
commit | fb78b182520fc9bb0f971afd0322029c70278ea6 (patch) | |
tree | b4e30d383938fdeef8c92d1d1c2f44bb61d329bd /bin/assets/ScriptsAssetSet/KanEd-Test05.lsl | |
parent | lixo (diff) | |
parent | Mantis #7713: fixed bug introduced by 1st MOSES patch. (diff) | |
download | opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.zip opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.gz opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.bz2 opensim-SC-fb78b182520fc9bb0f971afd0322029c70278ea6.tar.xz |
Merge remote-tracking branch 'os/master'
Diffstat (limited to '')
-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 | |||