Skip to content
lsl.devlsl.devLSL Dev

LSL Touch Position

LSL Header: {{LSL Header|ml=*}}LSLC: {{LSLC|}}
Here we propose an extension of the detected LSL functions to determine surface information for touch events. Each of the following functions is valid only inside touch_start, touch, and touch_end events. In the case of touch events, which are triggered repeatedly while the mouse button is held down, the surface information is valid (and is updatedly correctly) as long as the mouse remains over the surface of the object (allowing psuedo GUI builds with sliders, levers, dials, etc.)
Returns the region coordinates of the position touched by detected object number.
Returns the face of the position touched by detected object number.
Returns the texture coordinates of the position touched by detected object number.
Returns the surface coordinates of the position touched by detected object number.
Returns the surface normal of the position touched by detected object number. (A normal is a vector perpendicular to the surface.)
Returns the surface binormal of the position touched by detected object number. (A binormal is a vector tangent to the surface pointing along the U direction of tangent space.)

Call for Feedback

Internal LL Jira

https://jira.lindenlab.com/browse/DEV-9985
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LSL Touch Position, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.