---
id: "mujoco-articulated-dynamics"
title: "MuJoCo articulated-body dynamics with convex contacts"
aliases: [MuJoCo]
domain: "simulation"
stage: "simulation"
realtime: "realtime"
platforms: [cpu, python]
year_introduced: 2012
inputs: [skeleton]
outputs: [animation, skeleton]
style: "photoreal"
dynamic: "dynamic"
cost: "cheap"
authority: "Todorov et al., 2012"
url: "https://texelatlas.vercel.app/t/mujoco-articulated-dynamics/"
sources_verified_at: "2026-11-29"
---
# MuJoCo articulated-body dynamics with convex contacts (Todorov et al., 2012)

> Physics engine for robotics and biomechanics that simulates articulated bodies in generalised coordinates with a convex, smooth contact model suited to optimisation.

## Reach for it when

- robot arm simulation is unstable or slow
- need fast accurate physics for jointed bodies
- train reinforcement learning on simulated robots
- joints drift apart in a physics engine

## How it works

MuJoCo represents a system as a tree of joints in generalised coordinates and computes forward and inverse dynamics with articulated-body algorithms, so there is no joint drift. Contacts are not rigid: the contact problem is posed as a convex optimisation with soft constraints, whose smoothness gives well-defined gradients and makes trajectory optimisation and control feasible. Actuators, tendons, muscles and sensors are first class. The same model drives forward simulation, finite-difference derivatives, and, in newer versions, GPU/JAX batch rollouts.

## When to use it

Choose it for robot control, reinforcement learning and biomechanical or character-control research where determinism, speed and derivatives matter. Prefer [Sequential impulses (rigid bodies)](https://texelatlas.vercel.app/t/sequential-impulses.md) or [Soft Step solver / substepping](https://texelatlas.vercel.app/t/soft-step-solver.md) for visually plausible game physics with many bodies, and [FABRIK inverse kinematics](https://texelatlas.vercel.app/t/fabrik-ik.md) for kinematic pose solving without dynamics.

## Cost

cheap — Hundreds of thousands of steps per second on CPU for small models.

## Failure modes

- Soft contacts mean visible penetration and 'sliding' unless parameters are tuned
- Fidelity of friction cone approximations (pyramidal vs elliptic) trades speed and accuracy
- Not designed for thousands of dynamic rigid bodies or destructible scenes
- Model files are engineering-heavy; visual quality is secondary

## Engine support

- unity: plugin — `Install the official MuJoCo Unity plugin from google-deepmind/mujoco (unity/ package)` (evidence: https://github.com/google-deepmind/mujoco/blob/main/unity/README.md, checked 2026-12-01) — Maintained official Unity integration in the MuJoCo repository.
- unreal: plugin — `Unreal Robotics Lab plugin integrating MuJoCo` (evidence: https://github.com/URLab-Sim/UnrealRoboticsLab, checked 2026-12-01)

## Dataflow

- Inputs: skeleton
- Outputs: animation, skeleton
- Platforms: cpu, python

## Combination ideas

- [A motion-matching database without mocap](https://texelatlas.vercel.app/ideas/physics-generated-motion-database/)

## Sources

1. [primary] Emanuel Todorov, Tom Erez, Yuval Tassa (2012) MuJoCo: A physics engine for model-based control. 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems. https://doi.org/10.1109/iros.2012.6386109 (verified via crossref on 2026-11-29)
2. [primary] Emanuel Todorov (2014) Convex and analytically-invertible dynamics with contacts and constraints: Theory and implementation in MuJoCo. 2014 IEEE International Conference on Robotics and Automation (ICRA). https://doi.org/10.1109/icra.2014.6907751 (verified via crossref on 2026-11-29)
3. [implementation] google-deepmind (2021) google-deepmind/mujoco. https://github.com/google-deepmind/mujoco License: Apache-2.0. (verified via github on 2026-11-29)

## Cite this entry

Texel. "MuJoCo articulated-body dynamics with convex contacts." https://texelatlas.vercel.app/t/mujoco-articulated-dynamics/ (accessed 2026-12-01).
