LlDetectedTouchUV
De DigiWiki.
Version du 25 juin 2012 à 23:29 par Djphil (discuter | contributions)
default { touch_start(integer UV_detected) { integer i = 0; for(; i<UV_detected; ++i) llWhisper(0, "UV clicked: " + (string)llDetectedTouchUV(i)); } }
default { touch_start(integer total_number) { vector UV = llDetectedTouchUV(0); float U = UV.x; float V = UV.y; // Now you can report U and V separately, or you can compare them separately with IF statements. // You of course do not need to store the vector components to separate variables, // you can access them from the vector that used as an intermediate, like this: // llSay(0, (string) UV.x); } }