RigX — A Body Moved Only by Its Muscles

A physics-driven human in the browser: 82 Hill-type muscles, no animation clips and no hidden forces. It balances, steps, walks and protects itself when it falls by muscle force alone, and it keeps learning from its own attempts.

Category
Apps
Type
In development
Author
Deniz Bazan
Published
November 27, 2026
Topics
  • Physics
  • Biomechanics
  • Three.js
  • Simulation
  • Experimental

Live experiment

RigX — push it, pull it, make it walk

Ready in browser
§ 01

No animation, only muscles

Every movement you see comes from force. The body is 21 rigid segments with 46 degrees of freedom, joined by hinges and ball joints, solved with Featherstone's articulated-body algorithm 1200 times a second. Eighty-two Hill-type muscles, with activation, force-length and force-velocity behaviour, pull on the bones, and the feet meet the ground through contact springs with friction. Every external force is counted each step, so nothing invisible holds the character up: if it stands, its muscles are doing it. The physics and the brain are written in Rust and run as WebAssembly.

§ 02

A brain made of reflexes

The controller watches the capture point, the spot where the body would come to rest at its current speed. It shifts the pressure under the feet, takes a step when the feet can no longer hold it, and walks by letting the body fall forward and catching it, step after step. When a fall cannot be stopped it switches to protection: knees bend, arms reach for the ground, the head is kept away from the floor. Lift it by the chest and it lets its legs hang ready to land; put it back on its feet and it stands up again.

§ 03

It knows where it is

Every step it estimates its own situation: what it is standing on, whether someone is holding it and by which part, how far the ground is below it, how hard it would land. Held in the air it keeps its legs under itself instead of locking up; held upside down by a foot it tries, rests and tries again, and it protects its head as it tips over.

§ 04

Give it a goal

Press Go to and tap the ground. A planning layer on top of the reflexes acts like a player with eyes and a controller: it looks ahead, recognises steps, stairs, ramps, hurdles and walls, plans a path and walks it. It knows what a stable stance is and returns to it when pushed. From its own attempts it has learned how risky each obstacle is for its body, so it goes around what it cannot do safely, or stops and says why, instead of falling.

§ 05

It practises

Its settings were found by self-practice: hundreds of simulated sessions per generation, kept only when they win on sessions the search has never seen. In the Train tab it keeps practising in your browser. Two mirrored attempts run on the same scenario and its memory moves toward the better one; every few rounds a check without help decides whether to keep the change or go back to the best memory. While it still falls a lot, a gentle physio hand at the pelvis steadies it and fades away as it improves.

  • F.01Push it from any direction, or grab any body part and pull
  • F.02Walk, turn, walk backward, march on the spot, dance and jump
  • F.03Stand on one leg and place the lifted foot anywhere
  • F.04Build obstacle courses from boxes, stairs, ramps and hurdles
  • F.05Go to: tap the ground and it plans its own way, showing what it intends and how risky each obstacle is
  • F.06Three looks: Anatomic, Plush and Classic
  • F.07Peel away the shell: muscles thicken as they shorten and redden as they work; bones and tendons underneath
  • F.08Train tab: it practises and remembers, in your browser
§ 06

Still learning

This is a living experiment. Walking is careful rather than athletic, stairs and even small steps still beat it (so with a goal it often refuses them), it cannot yet get up from the ground on its own, and the jump is low. Each of these is being worked on in the simulation itself, by practice, not by adding animation.

§ 07

Credits

Bone geometry adapted from the OpenSim gait2392 model (Delp et al. 1990; Anderson & Pandy 1999/2001; Thelen, Seth, Anderson, Delp) and arm26 model (OpenSim Development Team, after Holzbaur et al. 2005), CC BY 3.0, https://creativecommons.org/licenses/by/3.0/ — remeshed, simplified and stylized.

Comments

No comments yet. Start the conversation.
Please sign in.