<exporter>
    <!-- identifier of the exporter -->
  <name>crown_physics_exporter</name>
  
  <!-- display name of the exporter for the combo box -->
  <displayName>Crown - Physics</displayName>
  
  <!-- description of the exporter -->
  <description>Official Crown exporter for physics</description>

    <!-- exporter version -->
  <version>1.0</version>
  
  <!-- direction of the y-axis up / down -->
    <yAxisDirection>up</yAxisDirection>
    
    <!-- physics engine: box2d / chipmunk -->
  <physicsEngine>generic</physicsEngine>
  
  <!-- name of the template -->
  <template>crown_template.txt</template>
  
  <!-- file extension for the file to create -->
  <fileExtension>physics</fileExtension>
  
  <!-- anchorpoint -->
  <anchorPoint>
      <!-- does the system use anchor ponits ? -->
    <enabled>yes</enabled>
    
    <!-- default of the anchor point -->
    <relX>0.5</relX>    
    <relY>0.5</relY>
  </anchorPoint>
  <!-- origin of the coordinate system -->
    <origin>
        <!-- may be: anchorPoint or fixed -->
        <type>anchorPoint</type>
    </origin>
        
    <!--  
         global parameters for the file 
         may be empty.
         can be referenced with {{global.<name>}} from the template file
    -->
  <global>
    <parameter>
        <!-- name of the parameter {{global.gravity}} -->
      <name>gravity</name>
      
      <!-- display name -->
      <displayName>Gravity</displayName>
      
      <!-- description -->
      <description>Gravitational acceleration</description>
      
      <!-- short description (for status bar) -->
      <shortDescription>Gravitational acceleration</shortDescription>
      
      <!-- datatype: currently int, float, bool -->
      <!-- others will be available soon -->
      <type>float</type>
      
      <!-- the default value -->
      <default>9.80665</default>
      
      <!-- the minimum value -->
      <min>0.0</min>

      <!-- the maximum value -->
      <max>1000.0</max>
    </parameter>
  </global>
  
  <!-- 
      body parameters can be set for each body 
      see above for description
      parameters will be available as {{<body>.<name>}}
      
      {% for body in bodies %}
          ...
              {{body.<name>}}
          ...
      {% endfor %}
  -->
  <body>
    <parameter>
      <name>name</name>
      <displayName>Name</displayName>
      <type>string</type>
      <default></default>
    </parameter>    
    <parameter>
      <name>node</name>
      <displayName>Node</displayName>
      <type>string</type>
      <default></default>
    </parameter>
    <parameter>
      <name>class</name>
      <displayName>Class</displayName>
      <type>string</type>
      <default></default>
    </parameter>
  </body>
  
  <!-- 
      fixture parameters can be set for each polygon 
      see above for description
      parameters will be available as {{<fixture>.<name>}}
      
      {% for body in bodies %}
          {% for fixture in body.fixtures %}
              ...
              {{fixture.<name>}}
              ...
          {% endfor %}
      {% endfor %}
  -->
  <fixture>
    <parameter>
      <name>name</name>
      <displayName>Name</displayName>
      <type>string</type>
      <default></default>
    </parameter>
    <parameter>
      <name>class</name>
      <displayName>Class</displayName>
      <type>string</type>
      <default>default</default>
    </parameter>
    <parameter>
      <name>density</name>
      <displayName>Density</displayName>
      <type>float</type>
      <min>-1000</min>
      <max>1000</max>
      <default>2.0</default>
    </parameter>
    <parameter>
      <name>restitution</name>
      <displayName>Restitution</displayName>
      <type>float</type>
      <min>0</min>
      <max>1000</max>
      <default>0.0</default>
    </parameter>
    <parameter>
      <name>friction</name>
      <displayName>Friction</displayName>
      <type>float</type>
      <min>0</min>
      <max>1000</max>
      <default>0.0</default>
    </parameter>
    <parameter>
      <name>is_box</name>
      <displayName>Is Box</displayName>
      <type>bool</type>
      <default>false</default>
    </parameter>
    <parameter>
      <name>is_circle</name>
      <displayName>Is Circle</displayName>
      <type>bool</type>
      <default>false</default>
    </parameter>
  </fixture>
</exporter>

