Howto:Animate models: Difference between revisions

Jump to navigation Jump to search
→‎Conditions: added some details on the order of comparisons
m (Material animation extended, thanks to mfranz's mailinglist-mail.)
(→‎Conditions: added some details on the order of comparisons)
Line 51: Line 51:


=== Conditions ===
=== Conditions ===
Multiple animations can make use of a conditional.
Multiple animations can make use of a conditional. Check <tt>$FGDATA/Docs/README.conditions</tt> for some more details.


* '''equals:''' property value is equal to value/property.
* '''equals:''' property value (or second property) is equal to value/(first)property.
* '''greater-than:''' property value is larger than value/property.
* '''greater-than:''' property value (or second property) is larger than value/(first)property.
* '''greater-than-equals:''' property value is greater than or equal to value/property.
* '''greater-than-equals:''' property value (or second property) is greater than or equal to value/(first)property.
* '''less-than:''' property value is smaller than value/property.
* '''less-than:''' property value (or second property) is smaller than value/(first)property.
* '''less-than-equals:''' property value is smaller than or equal to value/property.
* '''less-than-equals:''' property value (or second property) is smaller than or equal to value/(first)property.


The example below is true when n1 has a value greater than 25.
The example below is true when n1 has a value greater than 25.
Line 87: Line 87:
     <value>0</value>
     <value>0</value>
     </equals>
     </equals>
   <or>
   </or>
   </condition>
   </condition>
</source>
</source>
155

edits

Navigation menu