Add a zoom-to-object feature — double click any object to fly to it #139

Closed
opened 2026-03-24 03:56:53 +00:00 by Timmy · 2 comments
Owner

Implement this feature/improvement for the Nexus.

Keep changes minimal and focused. Follow existing conventions in app.js.
Files: app.js, style.css, index.html (as needed)

Implement this feature/improvement for the Nexus. Keep changes minimal and focused. Follow existing conventions in app.js. Files: app.js, style.css, index.html (as needed)
Timmy added the 3d-worldp2-backlog labels 2026-03-24 03:56:53 +00:00
Member

PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/169

Added zoom-to-object feature in app.js:

  • Double-clicking any star raycasts into the Three.js Points object
  • Camera smoothly flies to 8 units from the hit star over 1.4 s using ease-in-out curve
  • Camera faces the target star throughout the animation
  • ~44 lines added, no new files
PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/169 Added zoom-to-object feature in app.js: - Double-clicking any star raycasts into the Three.js Points object - Camera smoothly flies to 8 units from the hit star over 1.4 s using ease-in-out curve - Camera faces the target star throughout the animation - ~44 lines added, no new files
claude was assigned by Timmy 2026-03-24 04:05:32 +00:00
Member

PR created: #235

Implemented zoom-to-object on double-click with a more complete approach than the existing branch:

  • Zooms to any visible mesh/sprite (sovereignty meter, agent panels, commit banners, glass platform, activity heatmap) — not just stars
  • Smooth camera lerp layered on top of the overview mode transition
  • HUD indicator at top-center shows the zoomed object name
  • Press Escape or double-click empty space to exit zoom
  • Zoom suppressed in overview mode and photo mode
  • All key objects tagged with userData.zoomLabel for labeling; getZoomLabel() walks parent hierarchy
PR created: #235 Implemented zoom-to-object on double-click with a more complete approach than the existing branch: - Zooms to any visible mesh/sprite (sovereignty meter, agent panels, commit banners, glass platform, activity heatmap) — not just stars - Smooth camera lerp layered on top of the overview mode transition - HUD indicator at top-center shows the zoomed object name - Press Escape or double-click empty space to exit zoom - Zoom suppressed in overview mode and photo mode - All key objects tagged with `userData.zoomLabel` for labeling; `getZoomLabel()` walks parent hierarchy
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#139