Files
Mujoco_WASM/test/user/testdata/fitmesh_inertiabox.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

43 lines
1.4 KiB
XML

<mujoco>
<compiler fitaabb="false"/>
<asset>
<mesh file="stanford_bunny.obj" inertia="exact"/>
</asset>
<worldbody>
<body euler="90 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".25 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".5 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos=".75 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0" pos="1 0 0">
<geom type="mesh" mesh="stanford_bunny"/>
</body>
<body euler="90 0 0">
<geom name="bunny_sphere" type="sphere" mesh="stanford_bunny" rgba="1 0 1 1"/>
</body>
<body euler="90 0 0" pos=".25 0 0">
<geom name="bunny_capsule" type="capsule" mesh="stanford_bunny" rgba="1 0 1 1"/>
</body>
<body euler="90 0 0" pos=".5 0 0">
<geom name="bunny_ellipsoid" type="ellipsoid" mesh="stanford_bunny" rgba="1 0 1 1"/>
</body>
<body euler="90 0 0" pos=".75 0 0">
<geom name="bunny_cylinder" type="cylinder" mesh="stanford_bunny" rgba="1 0 1 1"/>
</body>
<body euler="90 0 0" pos="1 0 0">
<geom name="bunny_box" type="box" mesh="stanford_bunny" rgba="1 0 1 1"/>
</body>
<light name="left" pos="0 0 1"/>
<light name="right" pos="1 0 1"/>
</worldbody>
</mujoco>