<!-- 
  descirbe a physic entity.
  
    - name: Name of the entity.
    - mass: weight of the entity (mandatory if entity is not static, unused otherwise).
    - static: true or false. a static entity has an infinity weight and don't move due to collisions. (optional, false by default) 
 -->
<physicsentity name="pipe_90" static="true">

  <!-- 
    Visual representation of the entity. can be either a simple graph (texture case) or a complex 
    graph with anmiation and so created on flash (CNode case). use only one of those: if both are present, CNode
    will have priority.
      - Texture.id: id of the graph, and also name of related the png file (called xxx.png).
      - CNode.name: name of the binary file describing the CNode.
      - CNode. tag: Optional. allows to use only a subset of a model as the graphic representation.
  -->
  <visualrepresentation>
    <Texture id="18"/>
  </visualrepresentation>
  <shapelist>
    <!--
      Shape Model. Describes the aspect of a shape, and some of its parameters.
      A physic entity can have up to 5 shapes to describe it, but try to limit it to 1 whenever it's possible for
      performances issues.

          - model: can be one of those: segment,polygon,circle. see physicshapemodel
          - elasticity: any floating value. Value of 1 means perfect bounce, 0 means no bounce. 1 and higher is not recommended.
          - friction: Friction coefficient. Value of 0.0 is frictionless. For reference values see http://www.roymech.co.uk/Useful_Tables/Tribology/co_of_frict.htm.
          - radius: used for circles and segment to describe their radius. Not used for polygon.
     -->
     
     <!-- entrance left -->
     <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
      <pointlist>
        <point x="-4.7" y="-0.5"/>
        <point x="-4.7" y="3.5"/>
        <point x="-3.7" y="3.5"/>
        <point x="-3.7" y="-0.5"/>
      </pointlist>
    </shape>
    
    <!-- entrance right -->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
      <pointlist>
        <point x="-0.8" y="-4.5"/>
        <point x="-0.8" y="-3.5"/>
        <point x="3.2" y="-3.5"/>
        <point x="3.2" y="-4.5"/>
      </pointlist>
    </shape>
    
     <!-- Pipe -->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
     
      <pointlist>
        <point x="-3.5" y="-1"/>
        <point x="-3.5" y="4"/>
		<point x="-0.4" y="4"/>
		<point x="1.6" y="3.1"/>
		<point x="2.9" y="2"/>
        <point x="3.7" y="0.5"/>
        <point x="3.7" y="-1"/>
      </pointlist>
    </shape>
	
	<!-- Pipe -->
	<shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
      <pointlist>
	  <point x="-1.2" y="-3.4"/>
	  <point x="-1.2" y="-1"/>
	  <point x="3.7" y="-1"/>
	  <point x="3.7" y="-3.4"/>
      </pointlist>
    </shape>
    
     <!-- Pipe part 1-->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
       <pointlist>
        <point x="-4.8" y="-1.7"/>
        <point x="-4.8" y="-1"/>
        <point x="-3.5" y="-1"/>
        <point x="-3.5" y="-1.7"/>
      </pointlist>
    </shape>
    
     <!-- Pipe part 2-->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
       <pointlist>
        <point x="-4.8" y="4"/>
        <point x="-4.8" y="4.7"/>
        <point x="-3.5" y="4.7"/>
        <point x="-3.5" y="4"/>
      </pointlist>
    </shape>
    
    <!-- pipe 2 part 1-->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
      <pointlist>
        <point x="-2.0" y="-4.5"/>
        <point x="-2.0" y="-3.2"/>
        <point x="-1.4" y="-3.2"/>
        <point x="-1.4" y="-4.5"/>
      </pointlist>
    </shape>
    
    <!-- pipe 2 part 2-->
    <shape model="polygon" elasticity="0.8" friction="1.0" radius="0"> 
      <pointlist>
         <point x="3.6" y="-4.5"/>
        <point x="3.6" y="-3.2"/>
        <point x="4.3" y="-3.2"/>
        <point x="4.3" y="-4.5"/>
      </pointlist>
    </shape>
    
  </shapelist>
  
  
  <!--
    Optional.
    Collision informations used for in-game purposes. All fields are optional.
      - group: one of the defined group name in collisiongroups.
      - collisionType: one of the defined type name in collisiontypes.
      - layersbitset: bitset indicating the collision layers, for pseudo Z side collision managment.
  -->
  <collisioninfos group="" collisionType="collider" layersbitset="objects"/>
</physicsentity>
