1
0
Fork 0
fgdata/Aircraft/Generic/Pilot/Fighter/pilot.xml
Stuart Buchanan 0ce0e436ec Generalize pilot model support
Adds standard view option to enable pilot models.
Set /sim/rendering/pilot-model/available=true in aircraft
using pilot models.

/sim/rendering/pilot-model/enabled is used by users to
enable/disable the pilot models from the View Options dialog.

Note that pilot models are only visible for non-internal views.
2020-05-24 19:05:14 +01:00

220 lines
5.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<path>pilot.ac</path>
<params>
<texture type="string">default.png</texture>
<head>
<roll-animation>
<property type="string">controls/flight/aileron</property>
<factor type="float">-10</factor>
<offset-deg type="float">0</offset-deg>
<min type="float">-10</min>
<max type="float">10</max>
</roll-animation>
<pitch-animation>
<property type="string">controls/flight/elevator</property>
<factor type="float">-15</factor>
<offset-deg type="float">0</offset-deg>
<min type="float">-15</min>
<max type="float">15</max>
</pitch-animation>
<yaw-animation>
<property type="string">controls/flight/rudder</property>
<factor type="float">-25</factor>
<offset-deg type="float">0</offset-deg>
<min type="float">-25</min>
<max type="float">25</max>
</yaw-animation>
</head>
<arms>
<upper-animation>
<property type="string"></property>
<factor type="float">0</factor>
<offset-deg type="float">0</offset-deg>
<min type="float">0</min>
<max type="float">0</max>
</upper-animation>
<lower-animation>
<property type="string"></property>
<factor type="float">0</factor>
<offset-deg type="float">0</offset-deg>
<min type="float">0</min>
<max type="float">0</max>
</lower-animation>
</arms>
<legs>
<upper-animation>
<property type="string"></property>
<factor type="float">0</factor>
<offset-deg type="float">80</offset-deg>
<min type="float">0</min>
<max type="float">80</max>
</upper-animation>
</legs>
</params>
<animation>
<type>select</type>
<condition>
<and>
<not>
<property>/sim/current-view/internal</property>
</not>
<property>/sim/rendering/pilot-model/enabled</property>
</and>
</condition>
</animation>
<animation>
<type>range</type>
<min-m>1</min-m>
<max-m>500</max-m>
</animation>
<animation>
<type>material</type>
<object-name>Head</object-name>
<object-name>Body</object-name>
<object-name>LeftUpperArm</object-name>
<object-name>LeftLowerArm</object-name>
<object-name>LeftHand</object-name>
<object-name>LeftLeg</object-name>
<object-name>RightUpperArm</object-name>
<object-name>RightLowerArm</object-name>
<object-name>RightHand</object-name>
<object-name>RightLeg</object-name>
<texture alias="../../params/texture" />
</animation>
<!-- Head -->
<animation>
<type>rotate</type>
<object-name>Head</object-name>
<property alias="../../params/head/roll-animation/property" />
<factor alias="../../params/head/roll-animation/factor" />
<offset-deg alias="../../params/head/roll-animation/offset-deg" />
<min alias="../../params/head/roll-animation/min" />
<max alias="../../params/head/roll-animation/max" />
<center>
<x-m>0.295</x-m>
<y-m>-0.019</y-m>
<z-m>0.625</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Head</object-name>
<property alias="../../params/head/pitch-animation/property" />
<factor alias="../../params/head/pitch-animation/factor" />
<offset-deg alias="../../params/head/pitch-animation/offset-deg" />
<min alias="../../params/head/pitch-animation/min" />
<max alias="../../params/head/pitch-animation/max" />
<center>
<x-m>0.295</x-m>
<y-m>-0.019</y-m>
<z-m>0.625</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Head</object-name>
<property alias="../../params/head/yaw-animation/property" />
<factor alias="../../params/head/yaw-animation/factor" />
<offset-deg alias="../../params/head/yaw-animation/offset-deg" />
<min alias="../../params/head/yaw-animation/min" />
<max alias="../../params/head/yaw-animation/max" />
<center>
<x-m>0.295</x-m>
<y-m>-0.019</y-m>
<z-m>0.625</z-m>
</center>
<axis>
<x>0</x>
<y>0</y>
<z>1</z>
</axis>
</animation>
<!-- Arms -->
<animation>
<type>rotate</type>
<object-name>LeftUpperArm</object-name>
<object-name>LeftLowerArm</object-name>
<object-name>LeftHand</object-name>
<object-name>RightUpperArm</object-name>
<object-name>RightLowerArm</object-name>
<object-name>RightHand</object-name>
<property alias="../../params/arms/upper-animation/property" />
<factor alias="../../params/arms/upper-animation/factor" />
<offset-deg alias="../../params/arms/upper-animation/offset-deg" />
<min alias="../../params/arms/upper-animation/min" />
<max alias="../../params/arms/upper-animation/max" />
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>0.341</x-m>
<y-m>0</y-m>
<z-m>0.568</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>LeftLowerArm</object-name>
<object-name>LeftHand</object-name>
<object-name>RightLowerArm</object-name>
<object-name>RightHand</object-name>
<property alias="../../params/arms/lower-animation/property" />
<factor alias="../../params/arms/lower-animation/factor" />
<offset-deg alias="../../params/arms/lower-animation/offset-deg" />
<min alias="../../params/arms/lower-animation/min" />
<max alias="../../params/arms/lower-animation/max" />
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>0.062</x-m>
<y-m>0</y-m>
<z-m>0.385</z-m>
</center>
</animation>
<!-- Legs -->
<animation>
<type>rotate</type>
<object-name>LeftLeg</object-name>
<object-name>RightLeg</object-name>
<property alias="../../params/legs/upper-animation/property" />
<factor alias="../../params/legs/upper-animation/factor" />
<offset-deg alias="../../params/legs/upper-animation/offset-deg" />
<min alias="../../params/legs/upper-animation/min" />
<max alias="../../params/legs/upper-animation/max" />
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>0.021</x-m>
<y-m>0</y-m>
<z-m>-0.185</z-m>
</center>
</animation>
</PropertyList>