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
Rotation Rotation_Finder  

Rotation_Finder

Rotation Finder.lsl

Category: Rotation
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Rotation_Finder
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Rotation_Finder_1.lsl
1
2
3 1// Remove this number for this script to work
4
5
6
7
8 string Text = "Rotion finder now Online, left click to find rotaion vector"; //This is the message the Object the script is placed in to will say when it is spawned.
9
10
11 default
12 {
13
15 {
16 llSay(0, Text);
17 }
18
19 touch_start(integer number)
20 {
21 key owner = llGetOwner();
22 rotation gQuatRotation = llGetRot();
23 vector gRotation = llRot2Euler(gQuatRotation);
24
25 llInstantMessage(owner, "Quat rotation =" + (string)gQuatRotation);
26 llInstantMessage(owner, "vector rotation =" + (string)gRotation);
27
28 }
29
30 }// END //

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