<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedTouchUV</id>
	<title>LlDetectedTouchUV - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedTouchUV"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedTouchUV&amp;action=history"/>
	<updated>2026-10-25T11:51:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlDetectedTouchUV&amp;diff=99&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: vector llDetectedTouchUV( integer index );== Returns a vector that is the texture coordinates for where the prim was touched. The x &amp; y vector positions contain th...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedTouchUV&amp;diff=99&amp;oldid=prev"/>
		<updated>2017-12-30T17:57:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: vector llDetectedTouchUV( integer index );== Returns a vector that is the texture coordinates for where the prim was touched. The x &amp;amp; y vector positions contain th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: vector llDetectedTouchUV( integer index );==&lt;br /&gt;
Returns a vector that is the texture coordinates for where the prim was touched. The x &amp;amp; y vector positions contain the u &amp;amp; v face coordinates respectively (&amp;lt; u, v, 0.0&amp;gt;). &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[TOUCH_INVALID_TEXCOORD]] is returned when the touch UV coordinates cannot be determined. See Caveats for further details.&amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	index 	– 	Index of detection information 	&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
index does not support negative indexes.&amp;lt;br&amp;gt;&lt;br /&gt;
For the touch category of events only. The prim that was touched may not be the prim receiving the event, use [[llDetectedLinkNumber]] to check for this; likewise you can use [[llDetectedTouchFace]] to determine which face was touched.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
[[TOUCH_INVALID_TEXCOORD]] is returned when... &amp;lt;br&amp;gt;  &amp;lt;br&amp;gt;&lt;br /&gt;
• The avatar&amp;#039;s viewer does not support face touch detection. &amp;lt;br&amp;gt;&lt;br /&gt;
-• To check if face touch detection is supported check the return of [[llDetectedTouchFace]].  &amp;lt;br&amp;gt;&lt;br /&gt;
• The touch has moved off the surface of the prim. &amp;lt;br&amp;gt;&lt;br /&gt;
• The touch happened too close to the edge of the face to determine a location. &amp;lt;br&amp;gt;&lt;br /&gt;
• The triggering event is not a touch event.  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer UV_detected)&lt;br /&gt;
    {&lt;br /&gt;
        integer i = 0;&lt;br /&gt;
        for(; i&amp;lt;UV_detected; ++i)&lt;br /&gt;
            llWhisper(0, &amp;quot;UV clicked: &amp;quot; + (string)llDetectedTouchUV(i));&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer total_number)&lt;br /&gt;
    {&lt;br /&gt;
        vector UV = llDetectedTouchUV(0);&lt;br /&gt;
        float U = UV.x;&lt;br /&gt;
        float V = UV.y;&lt;br /&gt;
        // Now you can report U and V separately, or you can compare them separately with IF statements.&lt;br /&gt;
        // You of course do not need to store the vector components to separate variables,&lt;br /&gt;
        // you can access them from the vector that used as an intermediate.&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Events&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[touch_start]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[touch]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[touch_end]] 		 &amp;lt;br&amp;gt;	&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llDetectedLinkNumber]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[llDetectedTouchFace]] 		 &amp;lt;br&amp;gt;	&lt;br /&gt;
•  	[[llDetectedTouchST]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[llDetectedTouchPos]] 	 &amp;lt;br&amp;gt;		&lt;br /&gt;
•  	[[llDetectedTouchNormal]]  &amp;lt;br&amp;gt;			&lt;br /&gt;
•  	[[llDetectedTouchBinormal]] 	 &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;		&lt;br /&gt;
Deep Notes &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;History&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
• Introduced in SVN:870 r92872 Trunk Wednesday, 23 July 2008. &amp;lt;br&amp;gt;&lt;br /&gt;
• Server support available in Second Life Server 1.24.7.98039, client support in Release Candidate viewer 1.21.4 (98167). &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>