// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Inspect physical motion vectors // Not compiled or tested in-world // Setup: Use a rezzed object and touch as owner. A stationary object normally reports zero or near-zero motion. // Stop / restore: Remove or disable the script. It does not change the build. // Notes: These are simulator motion readings. Nonphysical target-omega is a viewer effect and may not appear as physical angular velocity here. The script never adds forces or stops motion. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; llOwnerSay("Velocity (m/s): " + (string)llGetVel()); llOwnerSay("Acceleration (m/s squared): " + (string)llGetAccel()); llOwnerSay("Angular velocity (radians/s): " + (string)llGetOmega()); } changed(integer flags) { if (flags & CHANGED_OWNER) llResetScript(); } }