Hold magnets in your hands and watch their invisible fields come alive in 3D. An AR physics lab for Snap Spectacles, built in Lens Studio.
- Live 3D magnetic field lines that follow the magnets every frame, with flowing comets
- A 3-step lesson: attraction, then North–North repulsion and the null point (B = 0)
- A compass with a field hum that rises with field strength and falls silent at the null point
- Iron filings, a prediction challenge, Earth mode (tilted dipole, aurora, X-ray magnet) and electric charges
- Planned with the hackathon's plan-lens skill (see
agent/skills/plan-lensanddevpost/design-brief.md). - Built with Claude Code + CLAD, driving Lens Studio 5.24 through the Lens Studio MCP: writing the TypeScript, recompiling, inspecting the preview and running tests.
- Everything is created at runtime by
Assets/Scripts/FieldLinesApp.ts; the field math lives inAssets/Scripts/FieldMath.ts. - Spectacles Interaction Kit 0.18 + Spectacles UI Kit; LEAF 2.0.2 for testing.
- 15 automated LEAF tests in
Assets/Tests(field-math unit tests, the 7 done criteria from the brief, and one scenario per feature), all passing in the preview. - Sound effects were synthesised procedurally (
tempAssetGen/). Earth land and biome data come from public-domain Natural Earth 1:110m data.
Open field_lines.esproj in Lens Studio 5.24+ and press Preview (Spectacles device, Interactive preview). To run the tests, open the LEAF panel and run any scenario.
See HANDOFF.md for the architecture and VIDEO_SCRIPT.md for the demo video.