Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New Functions

Grey Tomsen
Registered User
Join date: 30 Jul 2008
Posts: 3
11-15-2008 14:21
ok with llDetectedTouchPos(0); when Im touching only one side multipal times why do all the floats change insted of just two? Oh and the object is a default box at ZERO_ROTATION
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-15-2008 14:45
From: Grey Tomsen
ok with llDetectedTouchPos(0); when Im touching only one side multipal times why do all the floats change insted of just two? Oh and the object is a default box at ZERO_ROTATION

llDetectectedTouchPos:
"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."

Sure you don't want to be using llDetectedTouchST instead?
"Returns a vector that is the surface coordinates for where the prim was touched. The x & y vector positions contain the horizontal (s) & vertical (t) face coordinates respectively (<s, t, 0.0>;)."
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Grey Tomsen
Registered User
Join date: 30 Jul 2008
Posts: 3
llDetectectedTouchPos:
11-15-2008 15:05
I am looking for region spects not local :-(. if an plane box is rezzed with no rotation and a script is placed in it to tell the touched pos then when you touch it 2 or three times on only one side shouldn't one of the floats in the vector thats stated remain thesame?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-15-2008 15:17
From: Grey Tomsen
I am looking for region spects not local :-(. if an plane box is rezzed with no rotation and a script is placed in it to tell the touched pos then when you touch it 2 or three times on only one side shouldn't one of the floats in the vector thats stated remain thesame?

Check your script because this example works perfectly:
CODE

vector touchPos;

default {
touch_start(integer n) {
integer i;
for (i = 0; i < n; ++i)
touchPos = llDetectedTouchPos(i);
llOwnerSay((string)touchPos);
}
}

returning:
top:
"[15:15] Object: <105.27140, 122.81200, 20.53198>
[15:15] Object: <105.19130, 122.81210, 20.53198>
[15:15] Object: <105.11460, 122.78580, 20.53198>
[15:15] Object: <105.09670, 122.91140, 20.53198>
[15:15] Object: <105.23070, 122.95350, 20.53198>
[15:15] Object: <105.28870, 123.05570, 20.53198>
side:
[15:15] Object: <105.26400, 123.14740, 20.41007>
[15:15] Object: <105.18690, 123.14740, 20.40976>
[15:15] Object: <105.11930, 123.14740, 20.41918>
[15:15] Object: <105.04860, 123.14740, 20.31910>
[15:15] Object: <105.17220, 123.14740, 20.25879>
different side:
[15:15] Object: <105.40530, 122.75480, 20.41261>
[15:15] Object: <105.40530, 122.88970, 20.40043>
[15:15] Object: <105.40530, 122.97860, 20.37212>
[15:15] Object: <105.40530, 122.89760, 20.28933>
[15:15] Object: <105.40530, 122.80300, 20.26995>"
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Grey Tomsen
Registered User
Join date: 30 Jul 2008
Posts: 3
11-15-2008 15:31
Hmm ok it's working for you so I gess I need to find what Im doing rong. tyty