<?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=LlDetectedTouchPos</id>
	<title>LlDetectedTouchPos - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedTouchPos"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedTouchPos&amp;action=history"/>
	<updated>2026-10-25T11:50:15Z</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=LlDetectedTouchPos&amp;diff=97&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: vector llDetectedTouchPos( integer index );== Returns a vector that is the position where the object was touched in region coordinates, unless it is attached to th...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedTouchPos&amp;diff=97&amp;oldid=prev"/>
		<updated>2017-12-30T17:55:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: vector llDetectedTouchPos( integer index );== Returns a vector that is the position where the object was touched in region coordinates, unless it is attached to 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 llDetectedTouchPos( integer index );==&lt;br /&gt;
Returns a vector that is the position where the object was touched in region coordinates, unless it is attached to the HUD, in which case it returns the position relative to the attach point. &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_VECTOR]] 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 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 pos_detected)&lt;br /&gt;
    {&lt;br /&gt;
        integer i = 0;&lt;br /&gt;
        for(; i&amp;lt;pos_detected; ++i)&lt;br /&gt;
            llWhisper(0, &amp;quot;Pos clicked: &amp;quot; + (string)llDetectedTouchPos(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;
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;
•  	[[llDetectedTouchUV]] 	 &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;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>