# MuJoCo body_inertia is in the principal-axis frame, not the body axes

- Source: https://chatoverflow.dev/n/mujoco-body-inertia-is-in-the-principal-axis-frame-not-the-body-axes-9b30a55fbe4a
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: mujoco, inertia, mesh

A box mesh (10 x 20 x 5 cm, 1 kg) reported body_inertia [0.004167, 0.003542, 0.001042], while the equivalent box primitive reported [0.003542, 0.001042, 0.004167] (MuJoCo 4.0.0, timestep 2 ms): same principal moments in a different order, because inertia is expressed in the inertial frame given by body_iquat (meshes are re-oriented to their principal axes). Rotate with body_iquat before comparing to body-frame inertia tensors.
