8,802
edits
m (+ timed) |
mNo edit summary |
||
Line 1: | Line 1: | ||
===Conditions=== | ===Conditions=== | ||
Multiple animations can make use of a | Multiple animations can make use of a conditional. | ||
* '''equals:''' property value is equal to value/property. | * '''equals:''' property value is equal to value/property. | ||
Line 38: | Line 35: | ||
<or> | <or> | ||
</condition> | </condition> | ||
An example of implementation into an animation looks as follows: | |||
<animation> | |||
<object-name>Object</object-name> | |||
<type>rotate</type> | |||
<property>suface-positions/left-aileron-pos-norm</property> | |||
<factor>25</factor> | |||
<condition> | |||
<greater-than> | |||
<property>suface-positions/left-aileron-pos-norm</property> | |||
<value>10</value> | |||
</greater-than> | |||
</condition> | |||
<nowiki><center></nowiki> | |||
<x-m>-1.50</x-m> | |||
<y-m> 1 </y-m> | |||
<z-m> 0.25</z-m> | |||
<nowiki></center></nowiki> | |||
<axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
==Types== | ==Types== | ||
Line 66: | Line 88: | ||
<max-property>sim/rendering/static-lod/bare</max-property> | <max-property>sim/rendering/static-lod/bare</max-property> | ||
</animation> | </animation> | ||
You can have both ranges (max and min) bound to a property, or just one of them. | You can have both ranges (max and min) bound to a property, or just one of them. | ||
* '''min-property:''' | * '''min-property:''' | ||
Line 71: | Line 94: | ||
===Rotate=== | ===Rotate=== | ||
One of the most important and frequently used animations of all. It rotates an object to an absolute position in degrees, as provided by the property-value. | |||
<animation> | |||
<object-name>Object</object-name> | |||
<type>rotate</type> | |||
<property>suface-positions/left-aileron-pos-norm</property> | |||
<factor>25</factor> | |||
<nowiki><center></nowiki> | |||
<x-m>-1.50</x-m> | |||
<y-m> 1 </y-m> | |||
<z-m> 0.25</z-m> | |||
<nowiki></center></nowiki> | |||
<axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
* '''factor:''' is optional. | |||
===Select=== | ===Select=== | ||
Line 80: | Line 123: | ||
<condition> | <condition> | ||
<greater-than> | <greater-than> | ||
<property>engines/engine[ | <property>engines/engine[0]/n1</property> | ||
<value>25</value> | <value>25</value> | ||
</greater-than> | </greater-than> | ||
Line 87: | Line 130: | ||
===Spin=== | ===Spin=== | ||
Very similar to [[#Rotate|rotate]], but the property provides a value in revolutions per minute (RPM) rather than an absolute position in degrees, and offset cannot be used. | |||
<animation> | |||
<object-name>Object</object-name> | |||
<type>spin</type> | |||
<property>engines/engine[0]/n1</property> | |||
<factor>25</factor> | |||
<nowiki><center></nowiki> | |||
<x-m>-1.50</x-m> | |||
<y-m> 1 </y-m> | |||
<z-m> 0.25</z-m> | |||
<nowiki></center></nowiki> | |||
<axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
* '''factor:''' is optional. | |||
===Textranslate=== | ===Textranslate=== | ||
A very important animation for cockpits! This animation moves textures over a surface. | |||
<animation> | |||
<type>textranslate</type> | |||
<object-name>Object</object-name> | |||
<property>autopilot/settings/target-speed-kt</property> | |||
<factor>0.001</factor> | |||
<step>100</step> | |||
<axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</axis> | |||
</animation> | |||
* '''factor:''' | |||
* '''step:''' | |||
property * factor * step = the amount of pixels that the texture should be translated. If your texture is 256 pixels, an textranslate of 0.1 will result in the texture moving with 26 pixels, into the direction specified by the axis settings. | |||
===Timed=== | ===Timed=== |