particles.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <particlesystem>
  4. <name>dirt</name>
  5. <texture>smoke.png</texture>
  6. <emissive>false</emissive>
  7. <lighting>false</lighting>
  8. <offsets>
  9. <x-m> 0 </x-m>
  10. <y-m> 0 </y-m>
  11. <z-m> 0 </z-m>
  12. <roll-deg> 90 </roll-deg>
  13. </offsets>
  14. <attach>world</attach>
  15. <align>billboard</align>
  16. <placer>
  17. <type>point</type>
  18. </placer>
  19. <condition>
  20. <greater-than>
  21. <property>/rotors/main/wakevisible</property>
  22. <value>0</value>
  23. </greater-than>
  24. <not>
  25. <property>/sim/paused</property>
  26. </not>
  27. <not>
  28. <property>/sim/crashed</property>
  29. </not>
  30. <greater-than>
  31. <property>rotors/main/rpm</property>
  32. <value> 270 </value>
  33. </greater-than>
  34. <!--
  35. <greater-than>
  36. <property>/controls/engines/engine/throttle</property>
  37. <value> 0.7 </value>
  38. </greater-than>
  39. -->
  40. <less-than>
  41. <property>sim/multiplay/generic/float[4]</property>
  42. <value>23</value>
  43. </less-than>
  44. <!-- only if sun is above horizon -->
  45. <less-than>
  46. <property>/sim/time/sun-angle-rad</property>
  47. <value>1.57</value>
  48. </less-than>
  49. <!-- only over water -->
  50. <not>
  51. <property>sim/multiplay/generic/int[0]</property>
  52. </not>
  53. </condition>
  54. <shooter>
  55. <theta-min-deg> 0 </theta-min-deg>
  56. <theta-max-deg> 360 </theta-max-deg>
  57. <phi-min-deg> -0.1 </phi-min-deg>
  58. <phi-max-deg> 0.1 </phi-max-deg>
  59. <speed-mps>
  60. <property>rotors/main/rpm</property>
  61. <factor> 0.1 </factor>
  62. <spread> 2.0 </spread>
  63. </speed-mps>
  64. <rotation-speed>
  65. <x-min-deg-sec> 0 </x-min-deg-sec>
  66. <y-min-deg-sec> 0 </y-min-deg-sec>
  67. <z-min-deg-sec> 0 </z-min-deg-sec>
  68. <x-max-deg-sec> 0 </x-max-deg-sec>
  69. <y-max-deg-sec> 0 </y-max-deg-sec>
  70. <z-max-deg-sec> 0 </z-max-deg-sec>
  71. </rotation-speed>
  72. </shooter>
  73. <counter>
  74. <particles-per-sec>
  75. <property>sim/multiplay/generic/float[4]</property>
  76. <factor> -13 </factor>
  77. <offset-m> 2000 </offset-m>
  78. </particles-per-sec>
  79. </counter>
  80. <particle>
  81. <start>
  82. <color>
  83. <red><value> 0.4 </value></red>
  84. <green><value> 0.4 </value></green>
  85. <blue><value> 0.4</value></blue>
  86. <alpha>
  87. <property>rotors/main/rpm</property>
  88. <factor> 0.0009 </factor>
  89. <max> 0.4 </max>
  90. </alpha>
  91. </color>
  92. <size>
  93. <value> 0.1 </value>
  94. </size>
  95. </start>
  96. <end>
  97. <color>
  98. <red><value> 0.8 </value></red>
  99. <green><value> 0.8 </value></green>
  100. <blue><value> 0.8 </value></blue>
  101. <alpha>
  102. <property>rotors/main/rpm</property>
  103. <factor> 0.00016 </factor>
  104. <max> 0.7 </max>
  105. </alpha>
  106. </color>
  107. <size>
  108. <value> 0.3 </value>
  109. </size>
  110. </end>
  111. <life-sec>
  112. <value>0.35</value>
  113. </life-sec>
  114. <mass-kg>0.01</mass-kg>
  115. <radius-m>0.01</radius-m>
  116. </particle>
  117. <program>
  118. <fluid>water</fluid>
  119. <gravity>true</gravity>
  120. <wind>false</wind>
  121. </program>
  122. </particlesystem>
  123. <animation>
  124. <type>rotate</type>
  125. <object-name>dirt</object-name>
  126. <property>sim/multiplay/generic/float[1]</property>
  127. <axis>
  128. <x> 0 </x>
  129. <y> -1 </y>
  130. <z> 0 </z>
  131. </axis>
  132. </animation>
  133. <animation>
  134. <type>rotate</type>
  135. <object-name>dirt</object-name>
  136. <property>sim/multiplay/generic/float[2]</property>
  137. <axis>
  138. <x> 1 </x>
  139. <y> 0 </y>
  140. <z> 0 </z>
  141. </axis>
  142. </animation>
  143. <animation>
  144. <type>translate</type>
  145. <object-name>dirt</object-name>
  146. <property>sim/multiplay/generic/float[4]</property>
  147. <axis>
  148. <x> 0 </x>
  149. <y> 0 </y>
  150. <z> -1 </z>
  151. </axis>
  152. </animation>
  153. </PropertyList>