Add new files
This commit is contained in:
19
Script Tests/Script tests/Object/llAngleBetween.lsl
Normal file
19
Script Tests/Script tests/Object/llAngleBetween.lsl
Normal file
@@ -0,0 +1,19 @@
|
||||
// :CATEGORY:Scripting
|
||||
// :AUTHOR:Justin Clark-Casey (justincc)
|
||||
// :KEYWORDS:Opensim
|
||||
// :REV:1
|
||||
// :WORLD:Opensim
|
||||
// :DESCRIPTION:
|
||||
// One of many tests for Opensim
|
||||
// :CODE:
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
rotation aRot = ZERO_ROTATION;
|
||||
rotation bRot = llGetRot();
|
||||
float aBetween = llAngleBetween( aRot, bRot );
|
||||
llOwnerSay((string)aBetween);
|
||||
//llGetRot() being < 0, 0, 90 > this should report 1.570796
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user