Philosopher wrote in Wed Jun 05, 2013 2:31 pm:1) For the pushback, you could look at airliners for how they do it. It's essentially a thruster in the YASim file and then one property for showing the pushback and another for rolling the pushback towards the attachment point on the aircraft.
2) For the doors and rotor folding, you can use the aircraft.door class from Nasal. There are some docs in the $FG_ROOT/Nasal/aircraft.nas file and several examples in existing aircraft, but if you need help with Nasal I can help you out.
Your model is looking great! I'm looking forward to another helicopter in FlightGear, hopefully I'll get the chance to test it out.
<thruster x="19.28" y="0.00" z="-2.55" vx="1" vy="0" vz="0" thrust="10000">
<control-input axis="/sim/model/pushback/target-speed-fps" control="THROTTLE"
src0="-1" src1="1" dst0="-1" dst1="1"/>
<!-- Pushback -->
<model>
<name>Pushback</name>
<path>Models/Airport/Pushback/Goldhofert.xml</path>
<offsets>
<x-m>-10.0</x-m>
<y-m>0</y-m>
<z-m>-2.7</z-m>
</offsets>
</model>
Could not find at least one of the following objects for animation: 'rotor'
Could not find at least one of the following objects for animation: 'doorL', 'doorR', 'glaceL', 'glaceR'
Could not find at least one of the following objects for animation: 'PortesArrieres'
Could not find at least one of the following objects for animation: 'windowL2', 'windowR2', 'glaceL2', 'glaceR2'
Could not find at least one of the following objects for animation: 'FenetresArrieres'
Could not find at least one of the following objects for animation: 'windowL1', 'windowL2', 'windowR1', 'windowR2', 'glaceL1', 'glaceL2', 'glaceR1', 'glaceR2'
Could not find at least one of the following objects for animation: 'FenetresTotals'
Could not find at least one of the following objects for animation: 'elevator'
Could not find at least one of the following objects for animation: 'roueG', 'axeL1'
Could not find at least one of the following objects for animation: 'TrainGauche'
Could not find at least one of the following objects for animation: 'axeL2'
Could not find at least one of the following objects for animation: 'roueD', 'axeR1'
Could not find at least one of the following objects for animation: 'TrainDroit'
Could not find at least one of the following objects for animation: 'axeR2'
Could not find at least one of the following objects for animation: 'roueA', 'axeT3'
Could not find at least one of the following objects for animation: 'TrainArriere'
Could not find at least one of the following objects for animation: 'roueG'
Could not find at least one of the following objects for animation: 'roueD'
Could not find at least one of the following objects for animation: 'roueA'
<animation>
<name>Door</name>
</animation>
<!-- left gear -->
<gear x="5.538" y="1.343" z="-2.958"
compression="0.1"
spring="3.2"
damp="1.0"
sfric="1.5"
dfric="0.8"
initial-load="1">
<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="5.538" y="-1.343" z="-2.958"
compression="0.1"
spring="3.2"
damp="1.0"
sfric="1.5"
dfric="0.8"
initial-load="1">
<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>
<!-- rear gear -->
<gear x="0.744" y="0" z="-2.695"
compression="0.1"
spring="3"
damp="1.0"
sfric="1.5"
dfric="0.8">
<control-input axis="/controls/flight/rudder" control="STEER" square="true" src0="-1" dst0="0.5" src1="1" dst1="-0.5"/>
<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>
Users browsing this forum: No registered users and 12 guests