From f28d4da0afd102a0a9d6ba82c089849bd5df8608 Mon Sep 17 00:00:00 2001 From: frohlich Date: Thu, 4 Jan 2007 13:29:25 +0000 Subject: [PATCH] Modified Files: model-howto.html: Document animations additions --- Docs/model-howto.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Docs/model-howto.html b/Docs/model-howto.html index efd32d7ef..3162faa47 100644 --- a/Docs/model-howto.html +++ b/Docs/model-howto.html @@ -803,6 +803,11 @@ landing light.

<y-offset>1.0</y-offset> <z-factor>0.0</z-factor> <z-offset>1.0</z-offset> + <center> + <x-m>0.05</x-m> + <y-m>0.05</y-m> + <z-m>0.0</z-m> + </center> </animation> @@ -818,6 +823,10 @@ z-factor) and also offsets (x-offset, y-offset, and z-offset.) You can also specify minimum values (x-min, y-min, z-min) and maximum values (x-max, y-max, and z-max) for scaling results.

+

You can set the center of scaling with the center tag. The center is +that point that does not ever change its position under any scaling. +If unset this defaults to the (0, 0, 0).

+

The amount of scaling for each dimension is computed by the following formula (and then clamped if a min or max value is specified.)

@@ -1293,8 +1302,35 @@ the same that you would set in <property-base>.
material.showDialog("/sim/model/foo/material/fuselage");
+

"pick" animation type

+

This animation type is used to execute a command binding when the mouse + is pressed on this particular object. The Commands are the usual bindings + like used elsewhere in flightgear. +

+
<animation>
+  <type>pick</type>
+  <object-name>Button</object-name>
+  <repeatable>true</repeatable>
+  <interval-sec>0.1</interval-sec>
+  <binding>
+    <command>property-assign</command>
+    <property>instrumentation/button-pressed</property>
+    <value>1</value>
+  </binding>
+  <mod-up>
+    <binding>
+      <command>property-assign</command>
+      <property>instrumentation/button-pressed</property>
+      <value>0</value>
+    </binding>
+  </mod-up>
+</animation>
+
+

+
David Megginson, 11 March 2002
+
Mathias Fröhlich, 3 Jan 2007