aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-21 08:18:32 +1000
committerDavid Walter Seikel2012-01-21 08:18:32 +1000
commit1b089a502a778cfc1aae983afdae540de0ee1028 (patch)
tree1d8eadb44b7e68c3193e88d449dafaf9608a8a97 /LuaSL
parentSome diff check tweakage. (diff)
downloadSledjHamr-1b089a502a778cfc1aae983afdae540de0ee1028.zip
SledjHamr-1b089a502a778cfc1aae983afdae540de0ee1028.tar.gz
SledjHamr-1b089a502a778cfc1aae983afdae540de0ee1028.tar.bz2
SledjHamr-1b089a502a778cfc1aae983afdae540de0ee1028.tar.xz
Add a script for LSL constants.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/constants.lsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
new file mode 100644
index 0000000..3b2f5a8
--- /dev/null
+++ b/LuaSL/src/constants.lsl
@@ -0,0 +1,23 @@
1float PI = 3.14159265358979323846264338327950;
2float PI_BY_TWO = PI / 2; // 1.57079632679489661923132169163975
3float TWO_PI = PI * 2; // 6.28318530717958647692528676655900
4float DEG_TO_RAD = PI / 180.0; // 0.01745329252
5float RAD_TO_DEG = 180.0 / PI; // 57.2957795131
6float SQRT2 = 1.4142135623730950488016887242097;
7
8integer ALL_SIDES = -1;
9integer LINK_SET = -1;
10integer LINK_ROOT = 1;
11integer LINK_ALL_OTHERS = -2;
12integer LINK_ALL_CHILDREN = -3;
13integer LINK_THIS = -4;
14
15integer TRUE = 1;
16integer FALSE = 0;
17
18string NULL_KEY = "00000000-0000-0000-0000-000000000000";
19string EOF = "\n\n\n";
20
21rotation ZERO_ROTATION = <0.0, 0.0, 0.0, 1.0>;
22vector ZERO_VECTOR = <0.0, 0.0, 0.0>;
23