// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Rotate a UV coordinate about a pivot // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set UV, PIVOT and ANGLE degrees. Touch for owner-only output. // Stop / restore: Remove/disable. The script calculates only; no scene properties change. // Notes: The result may leave0..1 and wrap on repeating textures. This is coordinate math, not a prim texture mutation. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Planning only. vector UV=<0.2,0.8,0.0>; vector PIVOT=<0.5,0.5,0.0>; float ANGLE=30.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; float a=ANGLE*DEG_TO_RAD; vector q=UV-PIVOT; vector result=PIVOT+; llOwnerSay("Rotated UV="+(string)result); } }