Roberto Inzerillo wrote:
>>> I'm in the process of learning how to make parts of the aircraft move
>>> under certain circumstances. By now I'm reading the .xml files
>>> regarding the landing gears movement, so I came to that position-norm
>>> property which seems to control the rotate animation.
>>>
>>>
>> Yes and no, controls.gearToggle() (/Nasal/controls.nas) does control the
>> property.
>> The objects animations are based on this property value.
>>
>>
> oops, I get a little confused now. I don't see any call at gearToggle()
> function inside A-10 .xml files.
> What do you mean ith that? How does that work?
>
>
Hi Roberto,
editing xml files for animations is real easy, I wrote some for ai
animations and "connected" themm to the AI animation property tree. I
don't really have access to the xml files at the moment but very
basically, from what I understand, nasal writes into the property tree,
the xml files "watch" the property tree and set various graphic
properties of the graphic element according to those properties.
eg:
<!-- Extend/Retract -->
<!-- Gear -->
<animation>
<type>rotate</type>
<object-name>UC-NoseStrutTop</object-name>
<object-name>UC-NoseStrutBottom</object-name>
<object-name>UC-FTyre</object-name>
<object-name>UC-FStrutLowerDamper</object-name>
<object-name>UC-FStrutUpperDamper</object-name>
<object-name>UC-FStrutUpperBrace</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry>
<ind>0.0</ind>
<dep>100.0</dep>
</entry>
<entry>
<ind>0.5</ind>
<dep>100.0</dep>
</entry>
<entry>
<ind>1.0</ind>
<dep>10.0</dep>
</entry>
</interpolation>
<center>
<x-m>3.38</x-m>
<y-m>0.0</y-m>
<z-m>-0.19</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
refer;
http://denemaxwell.dnsdojo.net/users/downloads/models/AI-Models.zip
Cheers
Dene
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel