KineticRx

A browser-based 3D app for learning sports biomechanics and injury recovery. A skeleton and its muscles run, swim and take hits, so learners can see which muscles work, how an injury changes the movement and how the body recovers.

Area
Modelling
Year
2026
Role
Design & build
KineticRx in Recovery mode: a hamstring strain at day 12, with the injured and compensating muscles labelled

The flow

  1. 01

    Atlas

    An open 3D anatomy atlas, processed in Blender

  2. 02

    Content

    Movements, injuries and impacts as checked JSON

  3. 03

    Engine

    Pure maths works out every frame

  4. 04

    Render

    Three.js colours each muscle on the GPU

  5. 05

    Learn

    Panels, modes and timelines to explore

01

The problem

Anatomy is usually taught from static atlases: every muscle labelled, none of them moving. Learners memorise the parts without seeing how they work together under load, or what happens when one of them fails.

KineticRx bridges that gap for students, educators and kinesiology learners. The default view is always a body in motion, and anatomy is explored by pausing a movement rather than browsing a list of parts.

It is an educational model with illustrative data, not a diagnostic or clinical tool, and the app says so on screen.

02

Inside the app

Running gait with the left rectus femoris selected

01Running gait with the Inspector

The default view is a body in motion. Here the left rectus femoris is selected in initial swing: 59% active, a prime mover working concentrically to swing the thigh forward. The Inspector on the right plots its activation over the whole stride with a playhead, splits the effort between slow- and fast-twitch fibres and gives a relative load index. The outliner on the left groups every muscle by region, and the timeline along the bottom marks the four running phases.

A stiff landing from half a metre with the overloaded muscles labelled

02Impact lab: hard landing

A drop from about half a metre, stopped in 90 milliseconds. The ground pushes back at 5.6 times body weight and the knee bends to 68 degrees. Both rectus femoris and the left soleus go past their comfortable load (shown in red) while the lower back steadies the trunk. Sliding the contact time longer turns it into a softer, knee-bending landing with a lower peak.

A shoulder bump that throws the body past its base of support

03Impact lab: shoulder bump

An opponent bumps the left shoulder from the side. The hit throws the centre of mass 6 cm past the edge of the feet, so no muscle can pull it back and the body needs a 16 cm recovery step. The obliques and back muscles on the hit side brake the trunk, and the far-side glute stops the pelvis dropping as the weight shifts across.

A plant-and-cut turn with the muscles that took the load

04Impact lab: plant and cut

Running, the left foot plants and the body changes direction to the right in under a fifth of a second. The panel splits the response into muscles that took the load (quadriceps, glute, soleus) and muscles that braced (hamstrings, calf), and links straight to the related injuries in Compare or Recovery mode.

A volleyball block absorbed by the raised arm

05Impact lab: overhead block

A hard-hit ball meets the raised right hand in 12 milliseconds, a spike of about 1440 newtons. The deltoid goes past 100% as it brakes the arm, with the biceps and pectoralis helping, while the finger flexors stiffen the hand at contact. The trunk muscles on the other side stop the body twisting.

Injury search open on a hamstring strain

06Injury search: hamstring strain

Every injury in the catalogue opens to its symptoms, the muscles and structures involved and what actually happens. Here a hamstring strain labels the injured biceps femoris and semitendinosus on the model, and the gluteus maximus as compensating. A structure that isn't modelled yet, like the semimembranosus, is marked “not in current model” rather than hidden.

Compare mode against the uninjured baseline

07Compare mode

The same moment in the stride, injured against healthy. Switching modes never moves the playhead, so the comparison is like for like. Colour shows which muscles work less and which work more than baseline, and the Inspector draws the injured curve over a dashed baseline.

Recovery mode at day 12 of a hamstring strain

08Recovery mode

A second timeline plays the recovery forward while the stride keeps looping: Protect (days 0 to 5), Load (5 to 21) and Return to run (21 to 42). At day 12 the injured muscle has regained about a third of its capacity. Strength, movement pattern and stride recover on separate curves, which shows a real clinical point: the movement lags the strength.

Front-crawl swimming in the recovery phase of the stroke

09Front-crawl swimming

Front crawl uses the same engine as running. In the recovery phase, the relaxed arm swings out and forward over the water while the other arm pulls. The panel ranks the most active muscles right now with their role and contraction, and the stroke phases sit along the timeline.

Skeleton shown with muscles ghosted and a forearm flexor selected

10X-ray view

Muscles can be shown, ghosted or hidden, by side, to study the skeleton underneath. Here the muscles are ghosted and a forearm flexor is selected from the outliner, which breaks the upper limb into thumb, wrist and finger groups. A static pose has no cycle to plot, and the Inspector says so instead of showing an empty chart.

03

How I worked

  1. Ideation

    Start from what static anatomy can't show

    The idea came from how anatomy is usually learned: labelled parts that never move. I wrote down the problem, who it was for (students, educators and kinesiology learners) and the principles everything else would follow.

    • Movement first: the default view is always a body in motion
    • One movement, many states: baseline, injured and recovering share the same cycle and playhead
    • Simulation is data, rendering is a view
    • Honest numbers: every curve carries a source and a confidence label
    • Zero install and friendly to low-end school laptops
  2. Planning

    Scope it down, then set gates

    To keep it shippable, the first version was fixed at one movement (running), one region (lower limb and trunk) and one injury (a hamstring strain). The build was split into seven milestones, each ending in a working demo and one test that has to pass before moving on.

    • A performance budget: 60 fps on a laptop with integrated graphics, at least 30 fps on a school Chromebook, the first download under 6 MB
    • Guardrails: no in-browser physics solver for v1, no clinical claims, and muscles only added when a movement uses them
    • A risk register: the biggest risk is the credibility of the numbers, not the rendering
    Roadmap of seven milestones from M0 Foundations to M6 Expand and teach, each with its gate
    The milestone plan. Each stage ships as a demoable build, and the MVP is complete when recovery works end to end at M5.
  3. Documentation

    Write the framework before the code

    Before building, I wrote a 21-page technical framework covering the system architecture, the 3D asset pipeline, the full data model as TypeScript types, the roadmap, the interface and learning workflows, and the risks. Supporting documents cover the interface spec, the research plan, the Impact lab design, a generated audit of missing models and the licence attributions.

    App layout: mode bar on top, outliner on the left, viewport in the middle, Inspector on the right, and the chain ribbon and timelines along the bottom
    The planned layout. The 3D canvas holds only the body, and every number lives in the panels around it.
  4. Programming

    Build the layers in dependency order

    The code is a pnpm monorepo of small packages. I built from the bottom up: schemas first, then the pure biomechanics engine with its tests, then the 3D rendering and the panels, and finally the app that wires them together. The Blender scripts and the JSON content were developed alongside.

    • Strict TypeScript across every package
    • Content written as JSON and checked against the schemas
    • Headless Blender and Python scripts for the 3D models
  5. Testing

    Test the maths, check the content

    Because the engine is pure and deterministic, it can be tested without a browser. The unit tests check behaviour a learner would notice, such as the feet staying planted during a landing, and bigger bumps escalating from sway to hip strategy to a step to a fall.

    • 109 Vitest unit tests across the engine and the catalogue
    • Strict type checking and content validation commands
    • Milestone gates such as: day 0 of recovery equals the injured state, and the last day equals the baseline
    • A dev-only screenshot tool (Shift+P) that saves the app at full resolution

04

How it’s built

  1. 01

    Turn an open anatomy atlas into web models

    The bones and muscles come from Z-Anatomy, an open 3D atlas chosen because it includes the skeletal muscles. Python scripts run Blender from the command line: they find joint centres from the bones (for example by fitting a sphere to the head of the femur), build a 24-bone rig, simplify each muscle, skin it to the rig and tag every vertex with its muscle. The output is one skeleton file plus lower-limb, trunk and upper-limb muscle files, so each region loads on its own.

  2. 02

    Describe movement as data, not animation clips

    Each movement is a set of curves over one cycle: joint angles, how hard each muscle works, its role and the phases (such as stance and swing). The rig is posed from those curves every frame. Schemas check every content file when the app loads, so a muscle that doesn't exist or a broken curve fails loudly instead of showing up as a glitch in 3D.

  3. 03

    Work out each frame with a pure engine

    A separate biomechanics package turns a movement and a moment in time into a frame: joint angles, muscle activation, slow- and fast-twitch recruitment, a relative load index and how force passes along the kinetic chain from foot to trunk. It has no React, no Three.js and no randomness, so the same input always gives the same frame and the maths can be tested without a browser.

  4. 04

    Draw it cheaply enough for school laptops

    Curves are sampled once when the content loads, so each frame is a few array lookups. The animation clock runs outside React, and one small texture on the graphics card holds every muscle's activation, change, injury status and highlight, so recolouring 80-plus muscles is a single upload. The panels read a summary 15 times a second and keep a fixed layout, so numbers never make them jump.

  5. 05

    Layer injury and recovery over the same movement

    An injury is a set of changes on top of a movement: the injured muscle loses capacity, others compensate (each with a written explanation) and the joints move differently. Baseline, Injured, Compare and Recovery modes switch without moving the playhead. Recovery has separate curves for strength, compensation and movement, which shows a real clinical point: strength can come back before the movement pattern does.

  6. 06

    Add an Impact lab

    Landings, shoulder bumps, plant-and-cut turns and ball blocks are added on top of the current movement instead of forking the engine. Learners set the direction, force and contact time, then see which muscles took the load, which braced and whether the body sways, steps or falls.

05

System architecture

Small packages in one repository, each with one job. Dependencies run one way, so the maths never depends on the graphics or the interface.

System architecture: JSON content is validated and compiled by the schema package, evaluated each frame by sim-core, then drawn by the render loop, with a Zustand store shared with the React panels
The engine turns content into a frame; the views only draw it. Panels write input to the store, the render loop calls the engine every frame, and the panels read a summary about 15 times a second.
  1. 01content

    All the educational data as JSON: anatomy, movements, injuries, impacts

    Data only, no code

  2. 02schema

    Types, validation and cross-checks for every content file

    Bad content fails at load, never in the 3D view

  3. 03sim-core

    The biomechanics engine that evaluates each frame

    Pure and deterministic, fully unit-tested

  4. 04catalog

    Muscle index, filters and injury search

    Pure TypeScript

  5. 05render

    Loads the models, drives the rig, colours the muscles

    Reads a frame, never decides what happens

  6. 06ui

    Panels: outliner, Inspector, injury search, Impact lab, timelines

    Props in, callbacks out

  7. 07web

    Wires the store, the frame loop, the scene and the panels together

    The only place that holds state

06

Stack & tooling

The stack

Versions are the ranges declared in the project's package files.

TechnologyVersionWhat it does in KineticRx
TypeScript (strict)^5.6Catches mistakes in a codebase full of interlocking ids for muscles, joints and segments
React^19Builds the panels, Inspector, HUD and controls from small reusable components
Three.js^0.171Draws the skeleton and muscles: skinning, materials and the camera
React Three Fiber^9Lets the 3D scene be written as React components, with a per-frame loop
drei^10Camera controls and labels pinned to points in 3D
three-mesh-bvh^0.8Faster muscle picking on dense meshes (installed, not switched on yet)
Zustand^5One small store for what the user has chosen
Vite^6Dev server and bundler for the static production build
zodSchemas that validate every content file

The 3D asset pipeline

PieceWhat it does
Z-Anatomy (CC BY-SA 4.0)The open anatomy atlas the bones and muscles come from
Blender 5.2, run headlessOpens the atlas and runs the export scripts from the command line
build_rig.pyFinds joint centres from the bones and builds the 24-bone rig
export_region.pyPicks a region's muscles, simplifies them, skins them to the rig, tags each vertex and writes a GLB
zanatomy_map.csvMaps atlas object names to KineticRx muscle ids
Model auditLists every atlas object and reports which muscles and structures are still missing
glTF 2.0 / GLBOne skeleton file plus lower-limb, trunk and upper-limb muscle files, compressed with meshopt

No backend: what fills each role

KineticRx runs entirely in the browser. These parts do the jobs a backend usually would.

RoleWhat does it now
DataHand-written JSON files, version-controlled with the code
ValidationSchemas plus cross-reference checks, run at load and in tests
Business logicThe pure TypeScript biomechanics engine, run in the browser
Asset processingThe offline Blender and Python pipeline
Serving filesVite locally; any static host for production
Saved preferencesThe browser's local storage

Performance budget

MeasureTarget
Frame rate, laptop with integrated graphics60 fps
Frame rate, school Chromebook30 fps or more
Triangles visible at full detail350k or fewer
Draw calls40 or fewer
First region download6 MB or less
Time to interactive on 50 MbpsUnder 4 s
Engine time per frameUnder 0.5 ms

07

Key decisions

A pure, deterministic engine

Why · The maths can be tested without a browser, and replays and slow motion are exact.

Trade-off · Every effect has to be written as maths over curves, rather than left to a physics library.

Content as data, checked by schema

Why · Adding a movement, injury or impact is a content change, not a code change, and mistakes are caught at load.

Trade-off · The schema has to grow carefully as new kinds of content arrive.

Muscle state in a GPU texture

Why · Recolouring every muscle each frame is one small upload instead of 80 material changes.

Trade-off · Each region's muscles share one mesh, so the export pipeline has to tag every vertex correctly.

No backend, for now

Why · Everything runs in the browser from static files, so learners install nothing and it can sit on any static host.

Trade-off · There are no saved progress or classroom accounts yet; preferences live in the browser.

Honest numbers

Why · Activation is a normalised pattern and load is a relative index, not newtons. Every reference is marked verified or “to verify”.

Trade-off · It can't claim clinical accuracy, and some citations still need checking.

A blended impact model

Why · Layering impacts on the base movement keeps every other feature untouched and runs smoothly.

Trade-off · It is a response model, not a full ragdoll physics simulation.

08

Where it’s at

KineticRx is a working prototype: three movements, two playable injuries with recovery timelines, a catalogue of 16 injuries and an Impact lab, all running in the browser.

It is still being built. The stack, structure and features are expected to change as it grows, so this page is a snapshot rather than a final design.

  • TypeScript
  • React
  • Three.js
  • React Three Fiber
  • Zustand
  • Vite
  • zod
  • Vitest
  • Blender
  • Python
  • glTF

09

What’s next

Next

Fill the gaps

  • Model the missing muscles: gluteus medius, most of the quadriceps, tibialis anterior and posterior, the rotator cuff and the adductors
  • Add the planned movements: vertical jump and overhead throw
  • Switch on faster muscle picking for dense meshes
  • Touch controls and smaller layouts for tablets and phones
  • Confirm the references still marked “to verify”

Later

Beyond the muscles

  • Find or create models of the circulatory (cardiovascular), respiratory, urinary, digestive and nervous systems
  • Use them for more detailed simulations, such as how the heart, lungs and nerves respond during exercise and recovery
  • This is a long-term goal and will take time to do properly

Maybe

A backend, if it's needed

  • Saved learner progress and classroom accounts
  • Teacher-authored scenarios shared across devices
  • Because the engine and content are separate, this would be an addition, not a rewrite

Next · Modelling

PyreCast

MYAbout me