Skip to content

llDetectedTouchST

function ll.DetectedTouchST(Index: number): vector

Returns a vector that is the surface coordinates where the prim was touched.

The X and Y vector positions contain the horizontal (S) and vertical (T) face coordinates respectively.

Each component is in the interval [0.0, 1.0].

TOUCH_INVALID_TEXCOORD is returned if the surface coordinates cannot be determined (e.g. when the viewer does not support this function).

Parameters
Index (number)
Index of detection information

Add example usage here showing SLua/Luau syntax with ll.DetectedTouchST().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.