b598d79b3f
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
24 lines
488 B
XML
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>
|