// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Check vertical overlap in a spiral stair plan // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set step count, total turns and total rise positive. Touch to print the plan privately. // Stop / restore: Remove/disable; calculations do not alter objects. // Notes: Rise per revolution is a geometric clearance indicator only; it excludes tread thickness and avatar collision dimensions. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Calculation only. integer STEPS=24; float TURNS=1.5; float RISE=6.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(STEPS<1||TURNS<=0.0||RISE<=0.0) { llOwnerSay("Positive inputs required."); return; } llOwnerSay("Angle per step="+(string)(360.0*TURNS/STEPS)+" rise per step="+(string)(RISE/STEPS)+" vertical rise per revolution="+(string)(RISE/TURNS)); } }