Okay, here's my work on the landing gear. Model.xml:
- Code: Select all
<!-- Compression -->
<animation>
<name>StrutLeft</name>
<object-name>Main-Strut-L</object-name>
<object-name>Jack-L</object-name>
</animation>
<animation>
<name>StrutRight</name>
<object-name>Main-Strut-R</object-name>
<object-name>Jack-R</object-name>
</animation>
<animation>
<name>Strut-Up</name>
<object-name>Wheel-Stbd</object-name>
<object-name>Hub</object-name>
</animation>
<!-- V 2.11+ ONLY
<animation>
<type>rotate</type>
<object-name>Main-Strut-L</object-name>
<object-name>Hub-L</object-name>
<object-name>Wheel-L</object-name>
<property>/gear/gear[1]/compression-norm</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0 </dep></entry>
<entry><ind> 0.3 </ind><dep> 10 </dep></entry>
<entry><ind> 1 </ind><dep> 25 </dep></entry>
</interpolation>
<center>
<x-m> -5.292 </x-m>
<y-m> -1.161 </y-m>
<z-m> -1.388 </z-m>
</center>
<axis>
<x> 0.000 </x>
<y> -1.000 </y>
<z> 0.000 </z>
</axis>
</animation>
<animation>
<type>locked-track</type>
<object-name>Jack-L</object-name>
<center>
<x-m>-4.319</x-m>
<y-m>-1.091</y-m>
<z-m>-1.131</z-m>
</center>
<lock-axis>
<x>0</x>
<y>1</y>
<z>0</z>
</lock-axis>
<track-axis>
<x>-0.181</x>
<y>0</y>
<z>-0.835</z>
</track-axis>
<target-name>Main-Strut-L</target-name>
<target-center>
<x-m>-4.500</x-m>
<y-m>-1.064</y-m>
<z-m>-1.966</z-m>
</target-center>
</animation>
-->
<!-- Replacement code: -->
<animation>
<type>rotate</type>
<object-name>StrutLeft</object-name>
<object-name>Hub-L</object-name>
<object-name>Wheel-L</object-name>
<property>/gear/gear[1]/compression-norm</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0 </dep></entry>
<entry><ind> 0.3 </ind><dep> 10 </dep></entry>
<entry><ind> 1 </ind><dep> 25 </dep></entry>
</interpolation>
<center>
<x-m> -5.292 </x-m>
<y-m> -1.161 </y-m>
<z-m> -1.388 </z-m>
</center>
<axis>
<x> 0.000 </x>
<y> -1.000 </y>
<z> 0.000 </z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>StrutRight</object-name>
<object-name>Hub-R</object-name>
<object-name>Wheel-R</object-name>
<property>/gear/gear[0]/compression-norm</property>
<interpolation>
<entry><ind> 0 </ind><dep> 0 </dep></entry>
<entry><ind> 0.3 </ind><dep> 10 </dep></entry>
<entry><ind> 1 </ind><dep> 25 </dep></entry>
</interpolation>
<center>
<x-m> -5.292 </x-m>
<y-m> 1.161 </y-m>
<z-m> -1.388 </z-m>
</center>
<axis>
<x> 0.000 </x>
<y> -1.000 </y>
<z> 0.000 </z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>Strut-Up</object-name>
<property>/gear/gear[2]/compression-norm</property>
<interpolation>
<entry><ind> 0 </ind><dep> -0.62 </dep></entry>
<entry><ind> 1 </ind><dep> 0.0 </dep></entry>
</interpolation>
<axis>
<x> 0.000 </x>
<y> 0.000 </y>
<z> 1.000 </z>
</axis>
</animation>
FDM:
- Code: Select all
<!-- left gear -->
<gear x="4.59113" y="-1.4153" z="-2.38"
compression="0.2"
spring="3.2"
damp="1.0"
sfric="1.5"
dfric="0.8">
<control-input axis="/controls/gear/brake-left" control="BRAKE"/>
<control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
<control-input axis="/controls/gear/gear-down" control="EXTEND"/>
<control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
<control-speed control="EXTEND" transition-time="7"/>
</gear>
<!-- right gear -->
<gear x="4.59113" y="1.52786" z="-2.38"
compression="0.2"
spring="3.2"
damp="1.0"
sfric="1.5"
dfric="0.8">
<control-input axis="/controls/gear/brake-right" control="BRAKE"/>
<control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
<control-input axis="/controls/gear/gear-down" control="EXTEND"/>
<control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
<control-speed control="EXTEND" transition-time="7"/>
</gear>
<!-- tail gear -->
<gear x="-0.6688" y="0.04078" z="-2.78"
compression="0.62"
spring="3.5"
damp="1.0"
sfric="1.5"
dfric="0.8">
<control-input axis="/controls/flight/rudder" control="STEER" square="true" src0="-1" dst0="-1.0" src1="1" dst1="1.0"/>
<control-output control="STEER" prop="controls/gear/steering"/>
<control-input axis="/controls/gear/gear-down" control="EXTEND"/>
<control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
<control-speed control="EXTEND" transition-time="7"/>
</gear>
Like I alluded to in my post in the FDM forum, the tail gear currently has some issues (so keep a backup, or better: use Git), and I wouldn't claim it's very good, just better. The next step is separating the oleos into moving parts, doing scissors, etc., but like I said, that should happen after the release so that you can use the tracking animation as well (I fixed the link, it didn't like the www prefix).
For water effects, I would use submodels and IIRC one can have images (simple textured planes in .ac format) that can grow with time, so I was thinking of a simple white texture that would be on the water. But that's really bad
, I'm also wondering if that is something that a shader could do better? This is an illustrative photo (also need that vapor on the edges):