842
edits
Legoboyvdlp (talk | contribs) (→Examples: Add scissors example) |
|||
| Line 154: | Line 154: | ||
</PropertyList> | </PropertyList> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Lessons Learned == | |||
=== Scissors === | |||
[[File:Scissors-locked-track-example.png|thumb]] | |||
As seen to right, we have a oleo strut, and a gear leg. The oleo strut has a compression animation which uses a translate animation to move up or down according to gear-compression. There are two torque links - the top is called NLGTorqueLink1 and the bottom NLGTorqueLink2. | |||
The way this is animated is as follows: | |||
Each torque link rotates around its base, where it meets the oleo strut / gear leg and is locked on the y-axis. The target position is at the 3D cursor, where both of them meet, and the track axis is the axis between the two centers of rotation of the torque links (about ten degrees off vertical). The target object is the other torque link (number 1 for number 2 and vice versa). The slave center is the center of rotation for the other torque link. | |||
<syntaxhighlight> | |||
<animation> | |||
<type>locked-track</type> | |||
<object-name>NLGTorqueLink2</object-name> <!-- lower --> | |||
<center> | |||
<x-m>-13.569</x-m> | |||
<y-m>-0.004744</y-m> | |||
<z-m>-3.91356</z-m> | |||
</center> | |||
<lock-axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</lock-axis> | |||
<track-axis> | |||
<x>0.100955</x> | |||
<y>0.569668</y> | |||
<z>0.001675</z> | |||
</track-axis> | |||
<target-name>NLGTorqueLink1</target-name> | |||
<target-center> <!-- rotation axis of upper --> | |||
<x-m>-13.2685</x-m> | |||
<y-m>-0.005584</y-m> | |||
<z-m>-3.67419</z-m> | |||
</target-center> | |||
<slave-center> | |||
<x-m>-13.468</x-m> | |||
<y-m>-0.006419</y-m> | |||
<z-m>-3.34389</z-m> | |||
</slave-center> | |||
</animation> | |||
<animation> | |||
<type>locked-track</type> | |||
<object-name>NLGTorqueLink1</object-name> <!-- upper --> | |||
<center> | |||
<x-m>-13.468</x-m> | |||
<y-m>-0.006419</y-m> | |||
<z-m>-3.34389</z-m> | |||
</center> | |||
<lock-axis> | |||
<x>0</x> | |||
<y>1</y> | |||
<z>0</z> | |||
</lock-axis> | |||
<track-axis> | |||
<x>-0.100955</x> | |||
<y>-0.569668</y> | |||
<z>-0.001675</z> | |||
</track-axis> | |||
<target-name>NLGTorqueLink2</target-name> | |||
<target-center> <!-- rotation axis of lower --> | |||
<x-m>-13.2685</x-m> | |||
<y-m>-0.005584</y-m> | |||
<z-m>-3.67419</z-m> | |||
</target-center> | |||
<slave-center> | |||
<x-m>-13.569</x-m> | |||
<y-m>-0.004744</y-m> | |||
<z-m>-3.91356</z-m> | |||
</slave-center> | |||
</animation> | |||
</syntaxhighlight> | |||
This is confusing and non-intuitive, to say the least, but works! | |||
===3 axis ''locked-track'' animation=== | ===3 axis ''locked-track'' animation=== | ||
edits