// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Measure rotation since a bookmark // Not compiled or tested in-world // Setup: Use a rezzed prim and touch as owner before and after rotating it. // Stop / restore: Remove or disable. This inspector changes no build properties. // Notes: No rotation is applied. Uses quaternion angular difference, not a subtraction of Euler angles. Reset discards the bookmark. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. rotation original; integer ready; default { touch_start(integer count) { if(llDetectedKey(0)!=llGetOwner()) return; if(llGetAttached()) { llOwnerSay("Use a rezzed prim."); return; } if(!ready) { original=llGetRot(); ready=TRUE; llOwnerSay("Orientation bookmarked."); return; } llOwnerSay("Angular change: "+(string)(llAngleBetween(original,llGetRot())*RAD_TO_DEG)+" degrees."); } changed(integer flags) { if(flags & CHANGED_OWNER) llResetScript(); } }