Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix: keep the Walk Playground character in view when it falls

nirholas77a5b5039f6b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 056a0b239..633ff264a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Token Oracle follow / unfollow is working again** — Subscribing an agent to a token's oracle alerts — and unsubscribing — was silently failing for everyone; only the status check worked. Both now go through correctly, so you can opt an agent into (and out of) score-based alerts as intended. `[fix]`
- **Unity & Unreal avatar loading documented with code that actually works** — The developer hub's Unity and Unreal cards used to show sample code for an SDK that doesn't exist yet. They now show the real, working way to load a three.ws avatar today — your avatar's GLB endpoint loaded at runtime with glTFast (Unity) or glTFRuntime (Unreal), both standard glTF importers — alongside an honest note that a native package is still on the roadmap. (`/dashboard/developers`) `[docs, improvement]`
- **Vanity wallets for every agent — opt-in, owned per user** — Every agent and avatar has its own custodial Solana wallet, and you own it per creation: make an avatar and its agent wallet is yours; if someone forks or saves that avatar, they get a brand-new wallet they alone control — yours is never shared or copied. A new Vanity tab in the agent wallet hub lets you grind a custom address (your own prefix and/or suffix) on demand. If the wallet already holds funds, they're automatically and safely swept to the new address before the switch completes, so funds are never stranded. The wallet now appears everywhere an agent or avatar shows up — profiles, avatar pages, your Agents and Avatars dashboards, the Characters feed and Trending — each with one-tap copy, an explorer link, and a vanity badge. (`/vanity-wallet`) `[feature]`
+- **Walk Playground no longer loses your character when it falls** — When you walked the little robot off a ledge it could plummet faster than the page could keep up and slip off the bottom of the screen, leaving you unable to find it. The camera now tracks falls tightly and keeps the character in view, and on pages that can't scroll it catches the character and drops it right back into view. (`/features/walk`) `[fix]`
- **Walk the whole page — the site is now a platformer** — The corner walking companion can now step out of its spot. Click it and the character detaches and drops onto the page itself: headings, cards, buttons and images become solid ground you can walk and jump across with the arrow keys or WASD (on-screen buttons on phones). Stand on any link and it lights up like a trapdoor — pause on it, or press down, and the character dives through and you fall into the next page, landing back in from the top when it loads. It loads nothing extra until you click in, so normal browsing pays no cost. Jump straight in from any page with ?walk=play. `[feature]`
## 2026-06-18
diff --git a/data/changelog.json b/data/changelog.json
index 64f718104..6e148bd4b 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-19",
+ "title": "Walk Playground no longer loses your character when it falls",
+ "summary": "When you walked the little robot off a ledge it could plummet faster than the page could keep up and slip off the bottom of the screen, leaving you unable to find it. The camera now tracks falls tightly and keeps the character in view, and on pages that can't scroll it catches the character and drops it right back into view.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/features/walk"
+ },
{
"date": "2026-06-19",
"title": "Fixed wallet sign-in returning an error",
diff --git a/public/changelog.json b/public/changelog.json
index d2982c878..1b8eac3fd 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T17:00:21.584Z",
+ "generated_at": "2026-06-19T17:58:05.905Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -518,6 +518,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-19",
+ "type": "update",
+ "title": "Walk Playground no longer loses your character when it falls",
+ "summary": "When you walked the little robot off a ledge it could plummet faster than the page could keep up and slip off the bottom of the screen, leaving you unable to find it. The camera now tracks falls tightly and keeps the character in view, and on pages that can't scroll it catches the character and drops it right back into view.",
+ "link": "/features/walk",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-19",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 5b22b69bd..3f4778134 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -406,6 +406,14 @@
<category>feature</category>
<description>Every agent and avatar has its own custodial Solana wallet, and you own it per creation: make an avatar and its agent wallet is yours; if someone forks or saves that avatar, they get a brand-new wallet they alone control — yours is never shared or copied. A new Vanity tab in the agent wallet hub lets you grind a custom address (your own prefix and/or suffix) on demand. If the wallet already holds funds, they're automatically and safely swept to the new address before the switch completes, so funds are never stranded. The wallet now appears everywhere an agent or avatar shows up — profiles, avatar pages, your Agents and Avatars dashboards, the Characters feed and Trending — each with one-tap copy, an explorer link, and a vanity badge.</description>
</item>
+ <item>
+ <title>Walk Playground no longer loses your character when it falls</title>
+ <link>https://three.ws/features/walk</link>
+ <guid isPermaLink="false">2026-06-19:Walk Playground no longer loses your character when it falls</guid>
+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>When you walked the little robot off a ledge it could plummet faster than the page could keep up and slip off the bottom of the screen, leaving you unable to find it. The camera now tracks falls tightly and keeps the character in view, and on pages that can't scroll it catches the character and drops it right back into view.</description>
+ </item>
<item>
<title>Walk the whole page — the site is now a platformer</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 97b09406d..7f5e86bc0 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T17:00:21.567Z",
+ "generated_at": "2026-06-19T17:58:05.893Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/walk-playground.js b/src/walk-playground.js
index 13d2064dd..cc64d806c 100644
--- a/src/walk-playground.js
+++ b/src/walk-playground.js
@@ -197,6 +197,11 @@ class WalkPlayground {
this._armEl = null;
this._armAt = 0;
this._diving = false;
+
+ // Fall-recovery: timestamp the character first dropped below the visible
+ // viewport while the page could no longer scroll to follow. If it lingers
+ // there he's truly lost off-screen, so we re-drop him back into view.
+ this._airborneSince = 0;
}
async mount({ avatarId = null, startScreen = null, dropIn = false } = {}) {
@@ -635,6 +640,20 @@ class WalkPlayground {
}
}
+ // Fell off the bottom of the world on a page the camera can't scroll to
+ // follow — give it a beat to confirm, then re-drop him into view so he's
+ // never lost off-screen.
+ const sy = window.scrollY || 0;
+ if (!c.grounded && c.vy > 0 && c.y - sy > window.innerHeight * 1.25) {
+ if (!this._airborneSince) this._airborneSince = performance.now();
+ else if (performance.now() - this._airborneSince > 200) {
+ this._recall();
+ return;
+ }
+ } else {
+ this._airborneSince = 0;
+ }
+
// Trapdoor arming: standing fairly still on a link opens it. Suppressed
// during the spawn grace period so detaching onto a link isn't an instant
// teleport — the user gets to take control first.
@@ -659,14 +678,56 @@ class WalkPlayground {
// Scroll the page so the character stays comfortably in view.
_follow(dt) {
- const want = clamp(this.char.y - window.innerHeight * 0.55, 0, maxScroll());
+ const c = this.char;
+ const vh = window.innerHeight;
const cur = window.scrollY || 0;
- const next = this._reduced ? want : cur + (want - cur) * Math.min(1, dt * 6);
+ // Keep him ~55% down the viewport, easing smoothly — but track a fall
+ // tighter (gravity reaches 2400px/s), or the lag slides him off the
+ // bottom edge mid-plummet and the user loses sight of him.
+ const target = c.y - vh * 0.55;
+ const ease = c.grounded ? dt * 6 : dt * 12;
+ let next = this._reduced ? target : cur + (target - cur) * Math.min(1, ease);
+ // Hard visibility guarantee: never let his feet drop below 85% of the
+ // viewport while the page can still scroll, so he's always findable.
+ next = Math.max(next, c.y - vh * 0.85);
+ next = clamp(next, 0, maxScroll());
if (Math.abs(next - cur) > 0.5) window.scrollTo(0, next);
this._scrollY = window.scrollY || 0;
this._scan();
}
+ // Re-drop the character into the current view when a fall has carried him
+ // off-screen on a page the camera can't scroll to follow (e.g. a non-
+ // scrollable layout, where the document-bottom floor sits below the fold).
+ // He lands on the highest platform under him that's on screen, or onto a
+ // transient full-width ledge so he stops in view rather than vanishing.
+ _recall() {
+ this._scan(true);
+ const sy = window.scrollY || 0;
+ const vh = window.innerHeight;
+ const x = clamp(this.char.x, this.modelHalfW, docWidth() - this.modelHalfW);
+ let best = null;
+ for (const p of this.platforms) {
+ if (p.top < sy + 20 || p.top > sy + vh - 20) continue; // must be on screen
+ if (x < p.left - FOOT_PAD || x > p.right + FOOT_PAD) continue; // under him
+ if (!best || p.top < best.top) best = p;
+ }
+ if (!best) {
+ best = { left: -40, right: docWidth() + 40, top: sy + vh * 0.35, bottom: sy + vh * 0.35 + 3, href: null, el: null };
+ this.platforms.push(best);
+ }
+ this.char.x = x;
+ this.char.y = best.top;
+ this.char.vx = 0;
+ this.char.vy = 0;
+ this.char.grounded = true;
+ this.platform = best;
+ this._dropIgnore = null;
+ this._airborneSince = 0;
+ this.controller?.setState('idle');
+ this._say('Caught you — back in view.', 2200);
+ }
+
_render(dt) {
const c = this.char;
const sx = window.scrollX || 0;