feat: add right-click object inspection for 3D objects
Some checks failed
CI / validate (pull_request) Failing after 9s
CI / auto-merge (pull_request) Has been skipped

Right-clicking any inspectable 3D mesh or sprite now shows a
holographic tooltip with the object's name and description.

Tagged objects: glass platform, platform rim, sovereignty meter,
sovereignty score sprite, agent panels, and commit banners.
The contextmenu handler uses THREE.Raycaster against all scene
children and surfaces the first hit with userData.inspectName.
Tooltip dismisses on click or Escape.

Fixes #141
This commit is contained in:
Alexander Whitestone
2026-03-24 00:37:33 -04:00
parent 1dc82b656f
commit d4f57943ce
3 changed files with 95 additions and 0 deletions

View File

@@ -48,6 +48,11 @@
<div id="sovereignty-msg">⚡ SOVEREIGNTY ⚡</div>
<div id="inspect-tooltip">
<div id="inspect-name"></div>
<div id="inspect-desc"></div>
</div>
<script type="module" src="app.js"></script>
<div id="loading" style="position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #222; z-index: 1000;">
<div id="loading-bar" style="height: 100%; background: var(--color-accent); width: 0;"></div>