8,802
edits
m (→Translate: categorising) |
mNo edit summary |
||
Line 2: | Line 2: | ||
This document provides basic information for all kind of animations. For more complex animations, you are advised to check the available [[aircraft]] for examples. | This document provides basic information for all kind of animations. For more complex animations, you are advised to check the available [[aircraft]] for examples. | ||
==A note about animation order== | |||
{{stub}} | |||
Animations are executed by FlightGear in the order that they are read in the model's .xml file. Therefore, it is very important to pay attention to the order, especially when multiple animations are applied to the same object(s). | |||
==Special code parts== | ==Special code parts== | ||
Line 28: | Line 33: | ||
===Center=== | ===Center=== | ||
Various animations ([[#Rotate|rotate]], [[#Spin|spin]]) move around a center point. | |||
<nowiki><center></nowiki> | <nowiki><center></nowiki> | ||
<x-m>-1.50</x-m> | <x-m>-1.50</x-m> | ||
Line 147: | Line 154: | ||
<object-name>Collection1</object-name> | <object-name>Collection1</object-name> | ||
===Object-name=== | |||
These names are set in the 3D model. Each single object has a unique name; for easy identification it is advised to use descriptive names (LeftElevator, Rudder etc.). Animations are only applied to those objects that are mentioned in an object-name line (one object per line!). Animations lacking those, will be applied to the entire model. | |||
==Animation types== | ==Animation types== | ||
Line 188: | Line 198: | ||
</interpolation> | </interpolation> | ||
</animation> | </animation> | ||
===Enable-hot=== | |||
Scenery objects are automatically defined as solid by FlightGear, meaning that an aircraft can taxi on them and/or crash when touching. For certain objects (groundmarkings, beacon light-beams etc.) this might be an unwanted feature. The solidness can be disabled with the following animation: | |||
<animation> | |||
<object-name>Object</object-name> | |||
<enable-hot type="bool">false</enable-hot> | |||
</animation> | |||
* '''enable-hot:''' can be either true or false. Remember that objects are automatically solid, so it should not be nesecarily to set this at all when wanting solidness. | |||
===Flash=== | ===Flash=== |