Category talk:LSL Vector
//******************************* //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
}
}
//**********************
//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");
}
}