Fr/Nouvelles du projet FlightGear - février 2012: Difference between revisions

Jump to navigation Jump to search
End of translation.
m (Update 2.)
(End of translation.)
Line 221: Line 221:
  </animation>
  </animation>
</syntaxhighlight>
</syntaxhighlight>
You can add a scaling factor or an offset to it, but that's basically all you can do that way.  
Vous pouvez y ajouter un facteur d'échelle ou un décalage, mais globalement c'est tout ce que vous pouvez faire sous cette forme. Si vous voulez animer votre objet en suivant une fonction plus complexe, généralement on crée des scripts Nasal complexes pour calculer les propriétés de conduite, probablement sans savoir qu'il y a une autre façon d'y parvenir, au travers des expressions.
If you want to animate your object following a complex function, most people create complex Nasal scripts to compute the driving properties, probably not knowing that there is another way to achieve the goal: Expressions.  
Voici un exemple d'une animation de translation dépendant de deux propriétés et d'une fonction consinus :
Here is an example for a translate animation depending on two properties and the cosine function
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
  <animation>
  <animation>
Line 240: Line 239:
  </animation>
  </animation>
</syntaxhighlight>
</syntaxhighlight>
A rich set of predefined functions is available, including almost all those you have on your scientific pocket calculator.
Un ensemble riche de fonctions prédéfinies est disponible, comprenant pratiquement toutes celles que vous avez sur une calculatrice scientifique de poche.


[[Category:FlightGear Newsletter|2012 02]]
[[Category:FlightGear Newsletter|2012 02]]
518

edits

Navigation menu