<!--
  Describe a complex entity, that is composed of several entities linked together using joints.
    - name: name of the entity.
-->
<complexentity name="modele">
  <!-- 
    list of all sub-entities. Sub-entities can only be physicsentity.
      -entity.name: name of the entity.
      -entity.id: unique id for the entity, used for joints descriptions.
      -entity.x: offset of the entity.
      -entity.y: offset of the entity.
  -->
  <baseentytylist>
    <entity name="disque" id="1" x="-2.4" y="0"/>
    <entity name="disque" id="2" x="2.0" y="0"/>
  </baseentytylist>

  <!--
    List all joints. Because a given entity can be linked using several joints to several other 
    (or even to the same other entity), separating entities and links was mandatory.
    Be sure to atatch all entities of a complexentity to at least another entity. 
  -->
  <jointslist>
    <!-- 
      Describes a joint between 2 entities in a complexentity.
        - template: one of the defined templates.
        - entyty1id: id of the 1st entity.
        - entyty1id: id of the 2nd entity.
    -->
    <joint template="jointtest" entyty1id="1" entity2id="2">
      <!-- 
        based on the template's joint type, you must specify the right info:
        - pin: anchor1, anchor2
        - slide: anchor1, anchor2
        - pivot: pivot
        - groove: groove1, groove2, anchor2
      -->
      <anchor1 x="0" y="0"/>
      <anchor2 x="0.45" y="0"/>
    </joint>
    <!-- etc... -->
  </jointslist>
</complexentity>
