Add camera AR view, GPS stable mode and wider machine range
- Real-world mode opens the phone's rear camera as the game background; the 3D camera stands at the GPS position and follows the phone's orientation, so machines, beacons, range circles, the route and the robot appear in their real direction. City, traffic and family are hidden in this view; a toggle switches back to the 3D map, and drag turns the view where there is no orientation sensor - Stable mode (default on): drops GPS jumps impossible on foot, holds the position until it drifts past half the GPS error, calms the compass - Arrival range is 2.5x the GPS error (20–50 m), shown as a ground circle - Tests for the stabilizer, AR orientation and field of view Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -308,3 +308,12 @@ dialog header { display: flex; justify-content: space-between; align-items: star
|
||||
#real-intro p, #real-intro li { line-height: 1.9; font-size: 14px; }
|
||||
#real-intro ul { padding-inline-start: 18px; color: var(--dim); }
|
||||
#real-go { flex: 1; padding: 10px; border: 0; background: var(--gold); color: #1b1406; font-weight: 800; }
|
||||
|
||||
/* ---------- Camera AR view ---------- */
|
||||
#camera { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
|
||||
#camera[hidden] { display: none; }
|
||||
#world { z-index: 1; }
|
||||
body.ar { background: #000; }
|
||||
body.ar #crosshair { display: none; }
|
||||
#ar-toggle[hidden], #stable-toggle[hidden] { display: none; }
|
||||
#ar-toggle.on, #stable-toggle.on { background: var(--teal); color: #04201b; border-color: var(--teal); }
|
||||
|
||||
Reference in New Issue
Block a user