Modified Files:
model-howto.html: Document animations additions
This commit is contained in:
parent
dafb405492
commit
f28d4da0af
1 changed files with 36 additions and 0 deletions
|
@ -803,6 +803,11 @@ landing light.</p>
|
|||
<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>
|
||||
</pre></blockquote>
|
||||
|
||||
|
@ -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.</p>
|
||||
|
||||
<p>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).</p>
|
||||
|
||||
<p>The amount of scaling for each dimension is computed by the
|
||||
following formula (and then clamped if a min or max value is
|
||||
specified.)</p>
|
||||
|
@ -1293,8 +1302,35 @@ the same that you would set in <property-base>.
|
|||
<pre>material.showDialog("/sim/model/foo/material/fuselage");</pre>
|
||||
</blockquote>
|
||||
|
||||
<h3><a name="pick">"pick" animation type</h3>
|
||||
<p>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.
|
||||
<blockquote>
|
||||
<pre><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></pre>
|
||||
</blockquote>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<address>David Megginson, 11 March 2002</address>
|
||||
<address>Mathias Fröhlich, 3 Jan 2007</address>
|
||||
|
||||
<!-- Standard Footer Begin --></div>
|
||||
</td></tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue