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.
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.

The flow
01
Atlas
An open 3D anatomy atlas, processed in Blender
02
Content
Movements, injuries and impacts as checked JSON
03
Engine
Pure maths works out every frame
04
Render
Three.js colours each muscle on the GPU
05
Learn
Panels, modes and timelines to explore
01
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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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
Ideation
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.
Planning
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.

Documentation
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.

Programming
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.
Testing
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.
04
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.
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.
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.
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.
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.
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
Small packages in one repository, each with one job. Dependencies run one way, so the maths never depends on the graphics or the interface.

All the educational data as JSON: anatomy, movements, injuries, impacts
Data only, no code
Types, validation and cross-checks for every content file
Bad content fails at load, never in the 3D view
The biomechanics engine that evaluates each frame
Pure and deterministic, fully unit-tested
Muscle index, filters and injury search
Pure TypeScript
Loads the models, drives the rig, colours the muscles
Reads a frame, never decides what happens
Panels: outliner, Inspector, injury search, Impact lab, timelines
Props in, callbacks out
Wires the store, the frame loop, the scene and the panels together
The only place that holds state
06
Versions are the ranges declared in the project's package files.
| Technology | Version | What it does in KineticRx |
|---|---|---|
| TypeScript (strict) | ^5.6 | Catches mistakes in a codebase full of interlocking ids for muscles, joints and segments |
| React | ^19 | Builds the panels, Inspector, HUD and controls from small reusable components |
| Three.js | ^0.171 | Draws the skeleton and muscles: skinning, materials and the camera |
| React Three Fiber | ^9 | Lets the 3D scene be written as React components, with a per-frame loop |
| drei | ^10 | Camera controls and labels pinned to points in 3D |
| three-mesh-bvh | ^0.8 | Faster muscle picking on dense meshes (installed, not switched on yet) |
| Zustand | ^5 | One small store for what the user has chosen |
| Vite | ^6 | Dev server and bundler for the static production build |
| zod | Schemas that validate every content file |
| Piece | What it does |
|---|---|
| Z-Anatomy (CC BY-SA 4.0) | The open anatomy atlas the bones and muscles come from |
| Blender 5.2, run headless | Opens the atlas and runs the export scripts from the command line |
| build_rig.py | Finds joint centres from the bones and builds the 24-bone rig |
| export_region.py | Picks a region's muscles, simplifies them, skins them to the rig, tags each vertex and writes a GLB |
| zanatomy_map.csv | Maps atlas object names to KineticRx muscle ids |
| Model audit | Lists every atlas object and reports which muscles and structures are still missing |
| glTF 2.0 / GLB | One skeleton file plus lower-limb, trunk and upper-limb muscle files, compressed with meshopt |
KineticRx runs entirely in the browser. These parts do the jobs a backend usually would.
| Role | What does it now |
|---|---|
| Data | Hand-written JSON files, version-controlled with the code |
| Validation | Schemas plus cross-reference checks, run at load and in tests |
| Business logic | The pure TypeScript biomechanics engine, run in the browser |
| Asset processing | The offline Blender and Python pipeline |
| Serving files | Vite locally; any static host for production |
| Saved preferences | The browser's local storage |
| Measure | Target |
|---|---|
| Frame rate, laptop with integrated graphics | 60 fps |
| Frame rate, school Chromebook | 30 fps or more |
| Triangles visible at full detail | 350k or fewer |
| Draw calls | 40 or fewer |
| First region download | 6 MB or less |
| Time to interactive on 50 Mbps | Under 4 s |
| Engine time per frame | Under 0.5 ms |
07
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.
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.
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.
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.
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.
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
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.
09
Next
Later
Maybe
Next · Modelling
PyreCast