Home

verycracked / starbase

publicverycracked/Starbase
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add hands-together recenter gesture and auto-disable on timeout

7 months ago

521b162
Authored
V.C. Billingsley2/20/2026, 8:05:03 AM
Bringing both hands together (palm centers within 12% of frame) now
recenters the camera while preserving the current zoom level, giving a
quick way to re-orient during hand-controlled exploration. A purple
circle indicator and "RESET VIEW" label confirm the gesture visually.

Hand tracking now auto-disables after 3 seconds with no hands detected.
This prevents the app from staying in hand mode when the user walks away
or lowers their hands. The shared deactivateHands() function handles
both manual toggle-off and auto-timeout, restoring orbit controls and
flying the camera to the standard overview distance (180 units).

The manual toggle button reuses deactivateHands() to eliminate
duplicated cleanup logic.

Parent3313bd4

2 files changed
  • src/hands.js+31−0
  • src/main.js+51−10