{
  "version": 1,
  "canonical": "https://xaede.net/work/3rd-person-physics-sandbox",
  "title": "MotionBricks Range",
  "description": "A third-person shooting range in which a local neural model generates the operator’s next movement. Physics and the player’s input still decide where that movement can go.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<section class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">MotionBricks Range</span></li></ol></nav><span class=\"eyebrow\">Research prototype / TypeScript</span><h1>MotionBricks Range</h1><p class=\"detail-deck\">Generative motion meets a playable world</p><p class=\"intro-copy\">A third-person shooting range in which a local neural model generates the operator’s next movement. Physics and the player’s input still decide where that movement can go.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/3rd-person-physics-sandbox\" rel=\"noopener noreferrer\">View the source <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/3rd-person-physics-sandbox/blob/main/README.md\" rel=\"noopener noreferrer\">Project documentation <span aria-hidden=\"true\">↗</span></a></div></section><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/projects--3rd-person-physics-sandbox.webp\" class=\"visual-open\" aria-label=\"Open full-size visual: MotionBricks Range\"><img src=\"/media/visuals/projects--3rd-person-physics-sandbox.webp\" width=\"1600\" height=\"900\" alt=\"MotionBricks Range — gameplay screenshot\"  decoding=\"async\"></a><figcaption>Original public repository image. · <a href=\"/media/visuals/projects--3rd-person-physics-sandbox.webp\">View full size ↗</a> · <a href=\"https://raw.githubusercontent.com/josh-english-2k18/3rd-person-physics-sandbox/main/screenshot.png\" rel=\"noopener noreferrer\">Source</a></figcaption></figure><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">AREAS OF EXPLORATION</span><div class=\"tags\"><span>Browser AI</span><span>Animation</span><span>Physics</span></div><p class=\"small\">MIT · Public repository</p><p class=\"small\">GitHub record: October 27, 2025</p></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>Can generated movement keep up with a player?</h2><p>I wanted to test neural animation inside a game where the player can change direction before the model has finished its next segment. A generated walk is only useful here if it remains responsive to input and consistent with the physical world.</p><p>The range makes those constraints visible. The model proposes a future path, the player changes the target, and collision can prevent the character from going where the generated motion expected. The next generation has to begin from the character’s actual state.</p></section><section class=\"project-chapter\"><h2>A motion model inside a playable range</h2><p>MotionBricks Range puts a 200-million-parameter generative motion model inside a third-person shooter prototype. The operator’s next movement is generated locally in the browser. The environment gives that movement something to contend with: obstacles to vault, props to hit, weapons to aim and a player who can change direction before a generation finishes.</p><p>The motion preview makes the process visible. Cyan-to-violet wireframes show the coming one to two seconds of generated movement, amber marks the target pose, green shows the conditioning context and rings indicate predicted footfalls. The player can inspect what the model is trying to do while watching what the character actually does.</p></section><section class=\"project-chapter\"><h2>From generated poses to responsive control</h2><p>The TypeScript port of the MotionBricks SOMA runtime encodes recent context poses and desired targets into ONNX tensors, then decodes the resulting motion. Playback is asynchronous: the next generation starts from elapsed inference time and crossfades into the current segment. Walking, jogging, sprinting and aimed strafing use target windows drawn from sample clips.</p><p>Rapier moves a kinematic capsule along the generated root path. Collisions feed the character’s actual position back into subsequent generation. A small input assist makes movement respond immediately, with the displacement folded into the motion. Retargeting maps the 77-joint SOMA skeleton onto the operator; aim layers and inverse kinematics keep the weapon and hands aligned.</p></section><section class=\"project-chapter\"><h2>What the player can try</h2><p>The range includes destructible crates, explosive barrels, hinged targets, glass, a cube pyramid and a plank tower. Controls cover movement, sprinting, crouching, aiming, jumping or vaulting, reloading, and switching between a rifle and rocket launcher. The preview and HUD can be toggled independently.</p><p>The model runs through WebGPU, with a slower WASM fallback, and is cached after its initial download. This remains an animation and interaction research prototype; device performance and browser support depend on the inference backend.</p></section><section class=\"project-chapter\"><h2>The trade-off is in the stride</h2><p>The implementation keeps the inference pipeline, collision correction and input assist working together in the browser. Shorter generated segments can react sooner, but a span too short to contain a full stride can produce a shuffle. The project’s gait regression protects that specific trade-off.</p><p>The result is a working research prototype of local neural animation in a playable world. It demonstrates the integration; it leaves responsiveness, gait quality, browser performance and the player’s impression as separate things to judge.</p></section><h2>Implementation at a glance</h2><ul><li>Ports NVIDIA MotionBricks SOMA runtime to TypeScript.</li><li>Runs ONNX inference through WebGPU, with a WASM fallback.</li><li>Reconciles generated segments with Rapier collisions, immediate movement input, retargeting and weapon handling.</li></ul><h2>Project status</h2><p>A browser animation research prototype. WebGPU and WASM offer different performance characteristics; this page does not promise compatibility across all devices.</p><div class=\"detail-links\"><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/3rd-person-physics-sandbox\" rel=\"noopener noreferrer\">Source on GitHub <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"https://github.com/josh-english-2k18/3rd-person-physics-sandbox/blob/main/README.md\" rel=\"noopener noreferrer\">Further technical detail <span aria-hidden=\"true\">↗</span></a></div></div></section>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/3rd-person-physics-sandbox#webpage",
        "url": "https://xaede.net/work/3rd-person-physics-sandbox",
        "name": "MotionBricks Range",
        "description": "A third-person shooting range in which a local neural model generates the operator’s next movement. Physics and the player’s input still decide where that movement can go.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/3rd-person-physics-sandbox#project"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/3rd-person-physics-sandbox#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/projects--3rd-person-physics-sandbox.webp#image"
        }
      },
      {
        "@type": "SoftwareSourceCode",
        "@id": "https://xaede.net/work/3rd-person-physics-sandbox#project",
        "name": "MotionBricks Range",
        "description": "A third-person shooting range in which a local neural model generates the operator’s next movement. Physics and the player’s input still decide where that movement can go.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "codeRepository": "https://github.com/josh-english-2k18/3rd-person-physics-sandbox",
        "programmingLanguage": [
          "TypeScript",
          "JavaScript",
          "CSS",
          "HTML"
        ],
        "creativeWorkStatus": "Research prototype",
        "url": "https://xaede.net/work/3rd-person-physics-sandbox",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/3rd-person-physics-sandbox#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/projects--3rd-person-physics-sandbox.webp#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/3rd-person-physics-sandbox#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "MotionBricks Range",
            "item": "https://xaede.net/work/3rd-person-physics-sandbox"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/projects--3rd-person-physics-sandbox.webp#image",
        "url": "https://xaede.net/media/visuals/projects--3rd-person-physics-sandbox.webp",
        "contentUrl": "https://xaede.net/media/visuals/projects--3rd-person-physics-sandbox.webp",
        "width": 1600,
        "height": 900,
        "caption": "Original public repository image."
      }
    ]
  }
}
