Lee Elliott wrote:
I can't think of a suitable property that you could link to that would give a slowdown. You could use the inverse of agl but then the wheels would start spinning before you touched down (can anyone tell me if a good solution for pre-spinning the wheels on airliners before touch down has been found yet?
For the sound code I implemented two <internal> properties which reflect the time elapsed since starting the sound, and the time elapsed after stopping the sound.
This could be useful for the model animation also.
Erik
Guys, I played today with my j22.xml model wrapper. Can't we use <equal> sentence in situations other than <type>select</type>? I wanted to do that wheels don't spin when in the air (or slowly) and normally do when on the ground:
<!-- NOSEGEAR SPIN: -->
<!-- on the ground -->
<animation>
<type>spin</type>
<object-name>Nosegear</object-name>
<property>/velocities/uBody-fps</property>
<factor>-1.5</factor>
<center>
<x-m>-5.441</x-m>
<y-m>0.0</y-m>
<z-m>-1.648</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<condition>
<not>
<equals>
<property>/gear/gear/compression-norm</property>
<value>0.0</value>
</equals>
</not>
</condition>
</animation>
<!-- airborne --> <animation> <type>spin</type> <object-name>Nosegear</object-name> <property>/velocities/uBody-fps</property> <factor>-0.1</factor> <center> <x-m>-5.441</x-m> <y-m>0.0</y-m> <z-m>-1.648</z-m> </center> <axis> <x>0.0</x> <y>1.0</y> <z>0.0</z> </axis> <condition> <equals> <property>/gear/gear/compression-norm</property> <value>0.0</value> </equals> </condition> </animation>
When running fgfs, it said failed to load j22.xml, falling back to glider etc. I tried to move <condition> line up and down, to fit the body of the spin animation into it, but had no luck.
- Matevz
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
