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
Movement Demon Circle  

Demon Circle

Moves a pointer in a circle

Category: Movement
By : Ferd Frederix
Created: 2013-09-06 Edited: 2013-09-04
Worlds: Second Life

the Zip file

Download all files for Demon Circle
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. [428598 bytes] assembled view.png
Get file # 2. [145206 bytes] blue.bmp
Get file # 3. [131306 bytes] green.bmp
Get file # 4. [69453 bytes] magic circle1.jpg
Get file # 5. [68646 bytes] magic circle2.jpg
Get file # 6. [131306 bytes] orange.bmp
Get file # 7. [7276 bytes] Pointer.png
Get file # 8. [271854 bytes] purple magic circle1.bmp
Get file # 9. [93686 bytes] red.bmp
Get file # 10. pointer test.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1
2 
3 integer positions = 4;
4 integer primnum = 6;
5
6 rotate(integer N)
7 {
8
9 vector xyz_angles = <0,0.0,N>; // This is to define a 90 degree change
10 vector angles_in_radians = xyz_angles*DEG_TO_RAD; // Change to Radians
11 rotation rot_xyzq = llEuler2Rot(angles_in_radians); // Change to a Rotation
12
13
14 llSetLinkPrimitiveParamsFast( primnum, [PRIM_FULLBRIGHT,ALL_SIDES,FALSE,PRIM_ROT_LOCAL, rot_xyzq] );
15 llSleep(.5);
16 llSetLinkPrimitiveParamsFast( primnum, [PRIM_FULLBRIGHT,ALL_SIDES,TRUE] );
17 }
18 default
19 {
21 {
22 vector input = <0.0, 0.0, 0.0> * DEG_TO_RAD;
23 rotation initrot = llEuler2Rot(input);
24 llSetLinkPrimitiveParamsFast( primnum, [PRIM_ROT_LOCAL, initrot] );
25
26 }
27
29 {
30 integer i;
31 for (i =0; i < positions *90; i+=90)
32 {
33 rotate(i);
34 llSleep(1.0);
35 }
36 }
37 }

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