<?xml version="1.0" encoding="iso-8859-1"?>

<!-- http://wiki.flightgear.org/Particle_system -->

<!-- alias of /gear/gear[0]/wow -->
<!-- alias of /gear/gear[0]/rollspeed-ms -->
<PropertyList>
  

  <particlesystem>
    <name>left-tyre-smoke-landing</name><!--particlesystem-->
    <texture>smoke.png</texture>
    <emissive>false</emissive>
    <lighting>false</lighting>

    <condition>
      <!-- fumee
             - X > vitesse roues > 0 pour que l'effet soit temporaire
             - Y > suspensions relachees > 0 pour que ca ne fume pas lors du demarrage
             compression-norm : ~0.20 : charge / ~0.14 : decharge / 0 : en vol
      -->
      <and>
        <property>gear/gear[0]/wow</property>
        <greater-than>
          <property>sim/multiplay/generic/float[11]</property>
          <value>5</value>
        </greater-than>
        <less-than>
          <property>sim/multiplay/generic/float[11]</property>
          <value>90</value>
        </less-than>
        <greater-than>
          <property>gear/gear[0]/compression-norm</property>
          <value>0.0001</value>
        </greater-than>
        <less-than>
          <property>gear/gear[0]/compression-norm</property>
          <value>0.05</value>
        </less-than>
      </and>
    </condition>

    <attach>world</attach>

    <placer>
      <type>point</type>
    </placer>

    <shooter>
      <theta-min-deg>45</theta-min-deg> <!-- horiz angle : todo decaler vers l'exterieur -->
      <theta-max-deg>85</theta-max-deg>
      <phi-min-deg>-60</phi-min-deg>
      <phi-max-deg> 60</phi-max-deg>
      <speed-mps>
        <value> 50</value>
        <spread> 5</spread>
      </speed-mps>
      <rotation-speed>
        <x-max-deg-sec> 15</x-max-deg-sec>
        <x-min-deg-sec>-15</x-min-deg-sec>
        <y-max-deg-sec> 15</y-max-deg-sec>
        <y-min-deg-sec>-15</y-min-deg-sec>
        <z-max-deg-sec> 15</z-max-deg-sec>
        <z-min-deg-sec>-15</z-min-deg-sec>
      </rotation-speed>
    </shooter>

    <counter>
      <particles-per-sec>
        <value>300</value>
        <spread>30</spread>
      </particles-per-sec>
    </counter>

    <align>billboard</align>

    <particle>

      <start>
        <color>
          <red><value>   0.60 </value></red>
          <green><value> 0.60 </value></green>
          <blue><value>  0.60 </value></blue>
          <alpha><value> 0.10 </value></alpha>
        </color>
        <size>
          <value>0.5</value>
        </size>
      </start>
      <end>
        <color>
          <red><value>   0.60 </value></red>
          <green><value> 0.60 </value></green>
          <blue><value>  0.60 </value></blue>
          <alpha><value> 0.02 </value></alpha>
        </color>
        <size>
          <value>5</value>
        </size>
      </end>

      <life-sec>
        <value>1</value>
      </life-sec>
      <mass-kg>0.025</mass-kg>
      <radius-m>0.175</radius-m>
    </particle>

    <program>
      <fluid>  air </fluid>
      <gravity>true</gravity>
      <wind>   true</wind>
    </program>

  </particlesystem>

</PropertyList>
