Difference between revisions of "Category talk:LSL Vector"
Jump to navigation
Jump to search
(Created page with "//******************************* //IMPOSSIBLE TO GET A ZERO_VECTOR //******************************* vector c = <0.0, 0.0, 0.1>; default { touch_start(integer total_number…") |
m |
||
Line 1: | Line 1: | ||
<lsl> | |||
//******************************* | //******************************* | ||
//IMPOSSIBLE TO GET A ZERO_VECTOR | //IMPOSSIBLE TO GET A ZERO_VECTOR | ||
Line 14: | Line 15: | ||
} | } | ||
} | } | ||
</lsl> | |||
<lsl> | |||
//********************** | //********************** | ||
//IN THIS WAY IT RUNS... | //IN THIS WAY IT RUNS... | ||
Line 32: | Line 33: | ||
} | } | ||
} | } | ||
</lsl> |
Revision as of 09:54, 29 April 2012
<lsl> //******************************* //IMPOSSIBLE TO GET A ZERO_VECTOR //*******************************
vector c = <0.0, 0.0, 0.1>;
default {
touch_start(integer total_number) { c -= <0.0, 0.0, 0.025>; llSay(0, (string)c); if (c == ZERO_VECTOR) llSay(0, "ZERO_VECTOR"); // never c is a ZERO_VECTOR }
} </lsl> <lsl> //********************** //IN THIS WAY IT RUNS... //**********************
vector c = <0.0, 0.0, 0.1>;
default {
touch_start(integer total_number) { c -= <0.0, 0.0, 0.025>; llSay(0, (string)c); if ((string)c == "<0.00000, 0.00000, 0.00000>") llSay(0, "ZERO_VECTOR"); }
} </lsl>