Files
Mujoco_WASM/test/engine/testdata/skingroup.xml
T
Alessio Quaglino 831d9881d3 Remove box, cylinder and ellipsoid composite types.
Also, fix a bug with Flex textures that was causing an incorrect allocation of the textures in mjModel. Fixes #2013.

PiperOrigin-RevId: 692510858
Change-Id: If781716216974e085244da27bc3aa57d91c3458c
2024-11-02 11:14:13 -07:00

43 lines
1.3 KiB
XML

<mujoco>
<asset>
<skin name="skin" rgba="1 0 1 1" inflate="0.01"
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"
texcoord=".1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1 .1"
face="0 1 4 4 1 5 5 1 3 5 3 7 7 3 2 7 2 6 6 2 0 6 0 4 4 5 7 4 7 6">
<bone body="box" bindpos="0 0 .5" bindquat="1 0 0 0" vertid="4 5 6 7" vertweight="1 1 1 1"/>
<bone body="world" bindpos="0 0 -.5" bindquat="1 0 0 0" vertid="0 1 2 3" vertweight="1 1 1 1"/>
</skin>
</asset>
<worldbody>
<geom type="plane" size="2 2 .01"/>
<light pos="0 1 3" dir="0 -1 -2"/>
<light pos="0 -1 3" dir="0 1 -2"/>
<body name="box" pos="0 0 .9">
<joint limited="true" range="-45 45"/>
<geom type="box" size=".5 .5 .1"/>
</body>
<body pos="1 -1 .6">
<composite prefix="B0" type="grid" count="4 4 1" spacing=".2">
<geom group="4" size=".1"/>
<skin rgba="1 1 0 1" group="2" inflate=".1"/>
</composite>
</body>
<body pos="-1 1 .6">
<composite prefix="B1" type="grid" count="4 4 1" spacing=".2">
<geom group="2" size=".1"/>
<skin rgba="0 1 1 1" group="4" inflate=".1"/>
</composite>
</body>
</worldbody>
</mujoco>