Howto:Animate gear scissors using the tracking animation: Difference between revisions

Jump to navigation Jump to search
3 axis ''locked-track'' animation
m (http://www.youtube.com/watch?v=&feature=youtu.be)
(3 axis ''locked-track'' animation)
Line 154: Line 154:
</PropertyList>
</PropertyList>
</syntaxhighlight>
</syntaxhighlight>
===3 axis ''locked-track'' animation===
If it is necessary realize the animation to an object with ball joint, is the typical case of a hydraulic jack actuate the opening the landing gear, it is necessary to proceed in two stages, '''as ''locked-track'' animation always needs at least a locked axis'''.
First locks, for example, the '''Y''' axis and directs the object to a target object, in this example '' BOX_GEAR_GREEN.000 '' with coordinates: '' target-center ''. The '' track-axis '' is the axis that should point the target:
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="utf8"?>
<animation>
        <type>locked-track</type>
        <object-name>gear-front-jack-02</object-name>
        <center>
            <x-m>-2.91953</x-m>
            <y-m>-0.06230</y-m>
            <z-m>-1.30829</z-m>
        </center>
        <lock-axis>
            <x>0</x>
            <y>1</y>
            <z>0</z>
        </lock-axis>
        <track-axis>
            <x>1</x>
            <y>-0.23</y>
            <z>0.630</z>
        </track-axis>
        <target-name>BOX_GEAR_GREEN.000</target-name>
        <target-center>
            <x-m>-2.04543</x-m>
            <y-m>-0.23232</y-m>
            <z-m>-0.82533</z-m>
        </target-center>
    </animation>
</syntaxhighlight>
Then write a second ''locked-track'', which should be put immediately under the first, which locks the axis '''X'''. Everything else is equal, as all other references are unchanged.
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="utf8"?>
    <animation>
        <type>locked-track</type>
        <object-name>gear-front-jack-02</object-name>
        <center>
            <x-m>-2.91953</x-m>
            <y-m>-0.06230</y-m>
            <z-m>-1.30829</z-m>
        </center>
        <lock-axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </lock-axis>
        <track-axis>
            <x>1</x>
            <y>-0.23</y>
            <z>0.630</z>
        </track-axis>
        <target-name>BOX_GEAR_GREEN.000</target-name>
        <target-center>
            <x-m>-2.04543</x-m>
            <y-m>-0.23232</y-m>
            <z-m>-0.82533</z-m>
        </target-center>
    </animation>
</syntaxhighlight>


[[Category:Aircraft enhancement]]
[[Category:Aircraft enhancement]]
412

edits

Navigation menu