Turn Phone Video into Unity Animations with Claude Code and Codex
Capture character motion with ordinary phone cameras, convert the footage into 3D skeletal animations using Claude Code and Codex, and configure rigs and animation clips inside Unity.

Setting Up Claude Code, Codex CLI, and Unity Imports
To run terminal coding agents inside your game repository, start by installing Claude Code. On macOS, Linux, or WSL, run the installation script in your terminal, then open a new terminal window and run claude --version to confirm the CLI is available. On native Windows, you can install via PowerShell with irm https://claude.ai/install.ps1 | iex or WinGet with winget install Anthropic.ClaudeCode. Navigate to your project directory with cd and run claude to start an interactive session, where pressing Shift+Tab cycles permission modes.[18]
curl -fsSL https://claude.ai/install.sh | bashIf your workflow also uses OpenAI Codex from the terminal, install the Codex CLI with the standalone shell script on macOS or Linux, then launch it inside your project folder by typing codex. On first launch, sign in with your account and optionally run /init to create an AGENTS.md instruction file, /permissions to configure what commands the agent can execute, or /model to adjust the active model and reasoning effort.[19]
curl -fsSL https://chatgpt.com/codex/install.sh | shOn the Unity side, the engine primarily supports the FBX file format for importing meshes, animation rigs, and clips. While Unity can read native files such as .blend, .max, .mb, or .ma placed in the Assets folder by calling the 3D application's FBX export plug-in on the same machine, Unity documentation recommends exporting directly to FBX into your Assets folder. Selecting the imported file in the Project window opens its Import Settings in the Inspector, giving you access to the Rig and Animation tabs.[14]
Converting Phone Video to 3D Motion with Coding Agents
Developers are replacing dedicated motion capture suits with ordinary smartphone cameras and coding agents. X user @avinashpdy shared a home terrace workflow using two phones and a plastic bat to record cricket shots without markers or a studio setup. The author says Claude and Codex agents convert those phone recordings into character animations, which @avinashpdy then refines with a small custom tool built inside Unity. Similarly, X user @0xbobaaa highlighted an open-source motion capture workflow for Claude Code where a developer films one person from head to toe on a phone and feeds the video in to generate idle, walk, run, and attack animations without a suit, studio, or GPU.[1, 8]
Coding agents can also generate animation curves by driving 3D software through Python and the Model Context Protocol (MCP). X user @zer0point_eth says Claude Fable 5.2 can inspect a reference video and write custom Python scripts that keyframe an armature in Blender, outputting editable 3D animation. To link the DCC tool and game engine in one environment, X user @neviannn hooks Claude Code into both Blender and Unity 6 via MCP and supplies a single brief containing reference pictures, mechanics, and world details. X user @semichenkko also shared using Claude Opus 5.5 with MCP for Blender to control a live Blender session entirely in Python, building a 74-bone samurai body with nine armor layers and a sword-draw animation.[5, 7, 12]

Configuring Rigs, Avatars, and Clips in Unity
Once your agent pipeline exports an animated FBX into Unity, configure the skeleton in the Rig tab of the Inspector. Unity divides animations into Humanoid models, which require at least 15 bones organized like a human skeleton, and Generic models for creatures or props. For bipedal characters, set Animation Type to Humanoid, keep Avatar Definition on Create From This Model (or choose Copy From Other Avatar if you export animations as separate FBX files sharing a base mesh skeleton), and click Apply. Click Configure on the Rig tab to inspect the bone mapping. If Unity displays a Character not in T-Pose warning or fails automatic mapping, open the menus at the bottom of the Avatar window and run Mapping > Automap followed by Pose > Enforce T-Pose.[16]
Pose > Enforce T-PoseNext, switch to the Animation tab and enable Import Animation. Use the timeline editor to drag the start and end frame markers for each take, enable Loop Time and Loop Pose for cyclic motions, and configure Root Transform Rotation, Root Transform Position (Y), and Root Transform Position (XZ) to control whether movement is stored as root motion or baked into the pose via Bake into Pose. If an imported phone capture shows retargeting warnings at the top of the Inspector, expand the Import Messages section at the bottom of the Animation tab and enable the retargeting report to diagnose bone length or hierarchy mismatches.[15]
Generate Retargeting Quality ReportInside the engine, agents and physics tools can assist with post-capture cleanup before state machine assembly. X user @Xao_lanVT notes that after loading captured motion into Unity or Unreal Engine, a motion capture artist can use an agent to fix imperfect sections of a clip or assemble fight sequences from existing animations. X user @_RoscoeSteele also describes having Claude generate base models and animations via MCP and refining the motion in Cascadeur. To play the finished clips on a GameObject in Unity, drag the animation onto an instantiated Prefab in the Scene view or manually create an Animator Controller in the Project window, where you can arrange states and transitions, press F to focus on selected states, and enable Auto Live Link during Play Mode.[2, 11, 14, 17]
Create > Animator ControllerCommon Pitfalls: Multi-Pass Cleanup, Foot Drift, and Pose Prep
Raw output from video-to-animation agents rarely works in production on the first try. X user @JohnKlerAI states that agent-generated animations are far from ready on the initial output, noting that each animation still requires two to three refinement passes and takes roughly 10 to 15 minutes in total. To prevent defective motion from entering Unity unnoticed, X user @luccacerf built an open-source character pipeline connecting Claude Code, Tripo, Blender via MCP, and Unity with three critic agents that enforce strict numerical thresholds. The author says every animation must pass checks requiring a planted foot to drift no more than 0.1 cm/frame, loops to close within 2 mm, and no body part to dip beneath the floor.[3, 6]
Auto-rigging failures often start before animation capture if the character mesh was generated in an ambiguous pose. Sharing a test with Codex, Tripo, and UniRig to build an animated 3D dragon, X user @y4h22 notes that smooth bone binding depends on the initial concept image pose, recommending that all four feet stand firmly, wings spread completely open, the tail stay straight, and the background remain plain white. When importing non-humanoid rigs like a dragon into Unity, remember that Unity classifies them as Generic models, which only require specifying a root node bone rather than mapping a Humanoid Avatar.[4, 14, 16]
Within Unity's Animation tab, two import behaviors frequently trip up iteration loops. First, official Unity documentation warns that if you manually edit clip timings or add a clip in the Inspector, Unity will stop automatically updating the clip list when you re-export the external FBX file with new takes; you must click the add (+) button to create a new source take manually. Second, when Anim. Compression is set to Keyframe Reduction or Optimal, Unity calculates position error tolerances as a percentage of the coordinate value, meaning characters animated far from the world origin (such as 1000 units away) can lose subtle motion keyframes during compression.[15]
Results and Open-Source Phone-to-Unity Pipelines
Several open-source projects package phone video capture and skeletal retargeting for direct export to Unity. X user @SuddleMercury shared JustRigIt, an open-source tool that auto-rigs characters including finger bones, runs motion capture from a phone video on a local GPU, and exports to Unity, Blender, Godot, and Unreal. Focusing on cleanup, X user @cutetoxicguy shared RGB MoCap, an open-source Windows application that combines multiple AI motion capture models to turn regular videos into editable 3D character animations, fix sliding feet, and export directly to Unity, Blender, or Unreal.[9, 10]
Combining terminal agents with open-source rigging and capture tools allows solo developers to automate the path from mesh creation to engine-ready prefabs. X user @0xKense1 notes that pairing Claude Code with open-source utilities lets a single developer chain body rigging, motion capture, animation, and engine export. In @luccacerf's seven-skill open-source Claude Code pipeline, the author reports that routing meshes through Tripo, Blender MCP, and three numerical critic agents delivers rigged, animated, and measured characters directly into Unity.[3, 13]

Developers' methods are paraphrased from their public posts on X and credited to each author; setup steps follow the official documentation. Indexed 2026-11-27. Interfaces may have changed since; the official documentation takes precedence.
Sources
- @avinashpdy · 2026-11-25Xindexed 2026-11-27
- @Xao_lanVT · 2026-11-27Xindexed 2026-11-27
- @luccacerf · 2026-11-15Xindexed 2026-11-27
- @y4h22 · 2026-11-27Xindexed 2026-11-27
- @semichenkko · 2026-11-24Xindexed 2026-11-27
- @JohnKlerAI · 2026-11-26Xindexed 2026-11-27
- @zer0point_eth · 2026-11-23Xindexed 2026-11-27
- @0xbobaaa · 2026-10-22Xindexed 2026-11-27
- @SuddleMercury · 2026-11-23Xindexed 2026-11-27
- @cutetoxicguy · 2026-11-05Xindexed 2026-11-27
- @_RoscoeSteele · 2026-11-20Xindexed 2026-11-27
- @neviannn · 2026-11-09Xindexed 2026-11-27
- @0xKense1 · 2026-11-23Xindexed 2026-11-27
- docs.unity3d.com/Manual/ImportingModelFiles.htmlindexed 2026-11-27
- docs.unity3d.com/Manual/class-AnimationClip.htmlindexed 2026-11-27
- docs.unity3d.com/Manual/ConfiguringtheAvatar.htmlindexed 2026-11-27
- docs.unity3d.com/Manual/class-AnimatorController.htmlindexed 2026-11-27
- code.claude.com/docs/en/quickstartindexed 2026-11-27
- developers.openai.com/codex/cliindexed 2026-11-27
