It looks like rotate animations require an <x-m> coord for <center> tags
even though you can get away without <y-m> or <z-m>. What's worse, it
not only fails silently, it grabs the <y-m> value for <x-m> and then
uses the <z-m> value for <y-m>. Here comes the code.

Broken: (but can be fixed with an <x-m>0</x-m>)

 <animation>
  <type>rotate</type>
  <object-name>GearDoor3</object-name>
  <property>gear/gear[2]/position-norm</property>
  <offset-deg>0</offset-deg>
  <factor>180</factor>
  <min-deg>0</min-deg>
  <max-deg>60</max-deg>
  <center>
   <y-m>3.41</y-m>
   <z-m>-0.780</z-m>
  </center>
  <axis>
   <x>-1</x>
  </axis>
 </animation>

Works:

 <animation>
  <type>rotate</type>
  <object-name>Rudder</object-name>
  <property>surface-positions/rudder-pos-norm</property>
  <factor>30</factor>
  <center>
   <x-m>27.3</x-m>
  </center>
  <axis>
   <z>-1</z>
  </axis>
 </animation>

PS, you can play with this at ftp://jrbabcock
Josh


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to