Files
Mujoco_WASM/test/user/testdata/inertia_convex.xml
T
Alessio Quaglino b598d79b3f Move mesh inertia specification from global <compiler> to <asset/mesh>.
Three options:
- Convex: Use convex hull
- Exact: Use exact geometry (requires watertight mesh)
- Legacy: Legacy approximation (deprecated)

Fixes #2152

PiperOrigin-RevId: 688949900
Change-Id: I4537f343db917195c6fd58d517b189d5ee3be1cd
2024-10-23 07:06:31 -07:00

24 lines
488 B
XML

<mujoco>
<asset>
<mesh file="cube.obj"/>
<mesh name="inline_cube" inertia="convex"
vertex="
-.5 -.5 -.5
.5 -.5 -.5
.5 .5 -.5
-.5 .5 -.5
-.5 -.5 .5
.5 -.5 .5
.5 .5 .5
-.5 .5 .5"/>
</asset>
<worldbody>
<body>
<geom type="mesh" mesh="cube" density="1"/>
</body>
<body>
<geom type="mesh" mesh="inline_cube" density="1"/>
</body>
</worldbody>
</mujoco>