[X3D-Ecosystem] Research into MuJoCo XML for soft body physics

John Carlson yottzumm at gmail.com
Wed Dec 10 03:00:19 PST 2025


Poncho "IndexedTriangleSet" for MuJoCo:

<flexcomp name="f1" type="direct" rgba=".8 .2 .2 1" radius="0.01" dim="2"
pos="0 0 2"
              mass="1"
         point="...MFVec3F..."  (Coordinate.point)
element="...MFInt32..." (IndexedTriangleSet coordIndex?)

    <edge equality="true" damping="0.1"/>
      <elasticity young="3e5" poisson="0" thickness="8e-3"
elastic2d="bend"/>
      <contact solref="0.003"/>
    </flexcomp>

Help converting this to something that works for X3D IndexedTriangleSet
welcome.

Hammock grid:

 <flexcomp name="hammock" type="grid" count="11 9 1" spacing="0.2 0.2 0.2"
material="hammock"
              radius="0.04" dim="2">
      <pin id="0 8 90 98"/>
      <edge equality="true" solref="0.002 5"/>
      <contact selfcollide="none" internal="false" solimp=".99 .999
.00001"/>
    </flexcomp>

<!-- Copyright 2021 DeepMind Technologies Limited

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20251210/3fb30056/attachment.html>


More information about the X3D-Ecosystem mailing list