5c5449bf82
- Mesh inertias can now be computed exactly for well-formed (no holes) non-convex meshes. - To activate this feature, set `<compiler exactmeshinertia="true">` (defaults to `false`). This default may change in the future. - Added `<geom shellinertia="true/false">` (defaults to `false`). When true, geom inertia is computed assuming all the mass is concentrated on the surface, and `density` is interpreted as surface density (mass/area). Currently only mesh geoms are supported. PiperOrigin-RevId: 464368395 Change-Id: I17afd99b9b221c9d24ae951f6e63d5c61ff89820
24 lines
471 B
XML
24 lines
471 B
XML
<mujoco>
|
|
<asset>
|
|
<mesh file="cube.obj"/>
|
|
<mesh name="inline_cube"
|
|
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>
|