tie 2 objects at both ends of the rope

Discussion in 'Modeling' started by ningtang, Jul 20, 2019.

  1. Hi,

    I'm attempting to tie 2 objects at both ends. With 'composite', I can get the 'B0' body of the rope tied on one end, but I don't know how to tie another object at the other end.

    <body name="predator" pos="0 0 0">
    <joint axis="1 0 0" damping="0" name="predator0" pos="0 0 0" type="slide"/>
    <joint axis="0 1 0" damping="0" name="predator1" pos="0 0 0" type="slide"/>
    <geom type="sphere" size="0.2" mass="10" rgba="1 0 0 1"/>
    <site name="predatorEnd" pos="0 0 0" type="sphere" size="0.01"/>
    <body name="B0">
    <composite type="rope" count="21 1 1" spacing="0.1" offset="0 0 2">
    <joint kind="main" damping="0.005"/>
    <geom type="capsule" size="0.05 0.02" rgba=".5 .5 .5 1"/>
    </composite>
    <body name="dragger" pos="2.1 0 0">
    <joint axis="1 0 0" damping="0" name="dragger0" pos="0 0 0" type="slide"/>
    <joint axis="0 1 0" damping="0" name="dragger1" pos="0 0 0" type="slide"/>
    <geom type="sphere" size="0.2" mass="10" rgba="0 0 1 1"/>
    <site name="draggerEnd" pos="0 0 0" type="sphere" size="0.01"/>
    </body>
    </body>
    </body>

    Thanks a lot!
    Ning
     

    Attached Files:

    weiqi luo likes this.
  2. Hi Ning,
    I encounter the same problem and stuck here for a long time...
    If you already found the solution could you maybe share it?
    Thanks in advance!
    Weiqi