// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Compare spatial error from eased timing // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set A/B and normalized T. Owner touch prints calculations only. // Stop / restore: Disable/remove. No prim motion or appearance is changed. // Notes: Shows why easing changes speed while preserving endpoints. No scene object is changed. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Motion planning only. vector A=ZERO_VECTOR; vector B=<10.0,0.0,0.0>; float T=0.25; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(T<0.0||T>1.0) { llOwnerSay("T must be0..1."); return; } float eased=T*T*(3.0-2.0*T); vector linear=A+(B-A)*T; vector smooth=A+(B-A)*eased; llOwnerSay("Linear="+(string)linear+" smooth="+(string)smooth+" separation="+(string)llVecDist(linear,smooth)); } }