|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
Returns a vector that is the surface normal (perpendicular to the surface) where the touch event was triggered. Along with llDetectedTouchBinormal, this information can be used to find the tangent space at the touch location.
|• integer||index||–||Index of detection information|
negative indexes. 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.does not support
- If is out of bounds the script continues to execute without an error message.
- TOUCH_INVALID_VECTOR is returned when...
// rotates the prim, so the touched position points upwards llSetRot(llGetRot()*llRotBetween(llDetectedTouchNormal(0),<0,0,1>));
function vector llDetectedTouchNormal( integer index );