Personal Lab · 6 min read
Seeing myself move
I’ve been working with a personal trainer, and one thing I’ve found surprisingly difficult is knowing what a correct repetition is supposed to feel like.

Bench press is a good example. You’re lying on your back, trying to keep track of your shoulders, elbows and wrists in three-dimensional space. My trainer can walk around and see what I’m doing. I can’t. He can explain which muscles should be working and show me anatomical models of how they contract, but it’s harder to connect that explanation to what’s happening in my own body while I’m exercising.
Effort isn’t a particularly useful guide on its own. An exercise can feel difficult when you’re doing it well, and it can feel difficult when you’re putting strain somewhere you shouldn’t.
I wondered whether I could put an anatomical overlay on a live picture of myself. Perhaps seeing my own skeleton move would help me understand what the trainer was describing.
Starting with what the phone could see
I knew the iPhone could track body movement, but I didn’t know how accurate it would be. I started experimenting with ARKit and Claude Code.
The sensible place to begin was with joints, not muscles. ARKit estimates where different parts of the body are in three-dimensional space. Connect those points and you have a moving skeleton. If I could get that reasonably close to my own movements, I might be able to attach anatomical bones and, eventually, muscles.
For the first version, I put an iPhone on a tripod a few metres away, and the app, BodyXray, drew a cyan skeleton over the live camera picture. I could also connect the phone to a monitor over HDMI, with the display mirrored like a gym mirror. It was quite compelling to stand in front of it and see a skeleton following me.
Then I looked more closely. Some joints weren’t where mine appeared to be. Limbs looked the wrong length, and the feet were particularly troublesome. The overall movement could look convincing even when the model wasn’t very accurate.
I added a second skeleton in magenta, showing ARKit’s two-dimensional body detection alongside the three-dimensional one. The 2D points seemed closer to where my joints actually were, so they gave me something to compare against.
From there I built a short calibration routine. I stand facing the camera for three seconds, and the app compares the lengths of twelve body segments in the 2D detection with their projected 3D lengths, adjusting them individually. ARKit scales a template skeleton as a whole, which doesn’t necessarily give you the right proportions for a particular person.
That improved the alignment, although it didn’t make the tracking precise. A phone looking at one person from one direction still has quite a lot to guess.
When the leg went through the floor
An obvious problem showed up when I exported a squat into Blender. The leg sank through the floor. In another recording, the ankles were drawn halfway up the shin.
I ended up using the floor planes detected by ARKit to correct the recorded motion. When a foot is planted, the recording holds its ankle in position and works the knee position back out from the lengths of the thigh and shin. It also ignores detected planes above the hips, so a ceiling doesn’t get mistaken for the floor.
I deliberately kept that correction out of the live view. It would have been easy to make the picture look more convincing by fixing things after the fact, but then I wouldn’t be seeing what the phone was actually tracking. The correction makes the exported movement more usable; it doesn’t make the original measurements more accurate.
Putting bones on it
Once the skeleton was reasonably stable, I started adding anatomical bones. I used meshes from Z-Anatomy, prepared them in Blender and attached them to the tracked joints. Long bones sit between the appropriate joints, while the pelvis, ribcage and skull sit over the stick figure.
The head needed its own workaround. ARKit’s head joint barely turned when I looked to the side, so I used Apple’s Vision framework to read my face and drive the skull rotation separately. That made the head movement noticeably better in later tests.
This was still supposed to be a step towards showing muscles. I wanted to see something more informative than a stick figure while I exercised.
The more I tried it, though, the less convinced I became that adding muscles would solve the original problem. Bench press is awkward to film from a useful angle. A trainer can move around you and change position; a phone on a tripod can’t. If another person has to manage the camera, they might already be able to tell you what you’re doing wrong. More importantly, the skeletal tracking wasn’t accurate enough for me to trust a detailed account of what individual muscles were doing.
I decided to stop before building that layer. There wasn’t much point spending more time making an attractive anatomical display if I couldn’t trust what it was telling me.
Something I hadn’t set out to make
Meanwhile, the app was recording movement. It could export a BVH file, which Blender could use to animate a simple mannequin.
One of my more memorable tests was a little dance. I wanted to see whether the animation would move enough like me to be recognisable. It did, if only roughly. Seeing a small mannequin repeating my movements was funny, and it suggested something I hadn’t been thinking about when I started.
I’d made a basic motion-capture setup with an iPhone and a tripod.
The recording isn’t clean enough to call it professional motion capture. There are limits to the angles, the parts of the body it can see and the accuracy of the joints. Still, it can capture motion and transfer it to a rigged model, and I’ve had a recording where the arms move and the feet stay on the floor.
I could imagine using that for rough character animation or an explainer, perhaps alongside ordinary video. I’d like to try that, though I haven’t done it end to end yet.
Talking to the app from across the room
There was another problem I hadn’t anticipated. Claude Code was building and installing the app on my phone, but I was standing several metres away from the Mac whenever I tested it. Walking back to the keyboard after every adjustment soon became tedious.
I added a way for Claude Code to send commands to the running app: calibrate, take a photo, start a recording or change what the screen displays. Speech recognition on the phone passes my spoken words back through the app’s logs, and Claude’s response can appear as subtitles and be read aloud.

It’s not instant, but it means I can stand in position, describe what’s wrong and carry on testing without repeatedly returning to the desk.
Where I ended up
BodyXray can track a live skeleton, display anatomical bones, mirror the view to a monitor and export movement into Blender. Some parts are still rough, particularly when the camera loses sight of the head or feet, and the anatomical overlay is incomplete.
It hasn’t answered my original question about what a good bench press should feel like. For that, I now think analysing recorded video may be more useful than trying to infer too much from a reconstructed skeleton. My trainer was interested in the experiment, but the practical limits, starting with where to put the camera for a bench press, were obvious.
I did learn a lot about what the phone can and can’t track, and ended up with a motion-capture experiment I hadn’t planned to build. I also found a workable way to develop and test an app while standing on the other side of the room.
How it was made
- Claude Code
- Swift
- ARKit
- Xcode
- Blender
- Python
App: Swift and SwiftUI, ARKit body tracking, RealityKit for the overlay, Vision for head rotation, and Apple’s speech and audio frameworks for the remote conversation. The live view can be mirrored to a monitor over HDMI.
Build and control: Claude Code builds and installs the app through Xcode. A Mac-side script, bx.sh, sends commands to the app and reads back speech recognised on the phone.
Motion and anatomy: Blender and Python scripts for preparing Z-Anatomy bone meshes and applying exported BVH movement to a simple mannequin. Z-Anatomy meshes are licensed CC BY-SA 4.0 and derive from BodyParts3D (CC BY-SA 2.1 JP).
Limitations: Joint positions are estimates, not clinical measurements. The bones don’t yet cover the whole body, and tracking degrades when parts of the body leave the camera frame.