Inspiration
In every sandbox the physics is fixed, and players work around it. We asked what happens if the player writes the physics. First Light started as a persistent habitat where an autonomous robot learns a world it was never told about. Worlds turns that idea around for people: you wake up somewhere unknown, learn its laws by touching and asking, and then legislate your own.
What it does
Every world has a law book. Touch things and the world reacts under its laws; ask out loud and the answer comes from the law book only, with subtitles. "Not known here" is an honest answer. Then speak a law, for example "copper floats" or "gravity halves at night". An AI legislator drafts it into one of eight bounded law types with a scope. A deterministic Referee checks it against every law already in force and accepts it or tells you why it cannot hold. The law applies live, and you build: snap parts together with your hands and test your invention under the rules you chose. Share a link, and visitors arrive as strangers under your laws.
Judges who prefer an optional guided path press "Guided start" on the Guide panel (or say "guided start"); free discovery stays the default.
How we built it
- The client is Godot 4.6 with OpenXR and Meta's vendor plugin, on the Mobile renderer with Jolt physics, from our own open visualisation kit (viz-kit). It is hands-first: pinch to grab, snap and joint, a hand panel, and point-and-pinch to ask.
- The deterministic Referee holds each world's law book. It uses no randomness and no model, and its rule engine is covered by an extensive deterministic test suite.
- Models never hold keys. A broker issues short-lived scoped tokens, and every provider is bring-your-own. The default runs on NVIDIA NIM with Gemini as a capped fallback, so judges need no key.
- Subtitles, event captions and a describing narrator all come from one event stream, so no output invents a fact.
- Players can upload GLB parts. Each passes a licence and performance check and moderation before it is shared.
- Speak an object and it arrives in your hand, found in a licence-checked asset index (bge-m3 embeddings).
- Describe a new part and a parametric CAD service generates it within seconds; pull its handles to reshape it. Players own the mesh.
Challenges we ran into
- 50 physics bodies at Quest frame rates with laws changing live.
- Keeping an AI legislator honest. It drafts; only the Referee decides.
- Making an unknown world learnable without a tutorial or a wall of text.
- Delivering every answer through more than one sense.
Accomplishments that we're proud of
- A first touch reacts and a first question is answered within the first minute.
- A complete moment within ten minutes, seated and hands only.
- Law refusals the player can act on.
What's next for First Light: Worlds
- Live multiplayer visiting.
- The Artisan role grows into an asset market: in-game parts, and licensing for other engines.
- More law types.
- Agent players that author and explore worlds alongside people.
Built With
- cloudflare
- docker
- gemini
- godot
- hand-tracking
- javascript
- node.js
- nvidia
- openxr
- postgresql
- python
