1
0
Fork 0
fgdata/Aircraft/Generic/Pilot/WWII/pilot.xml
Stuart Buchanan a56d13640d Hide pilot model when walker enabled.
Previously pilot models would stay visible when the
walker was active.  Which is a bit unrealistic given
the walker is supposed to be "you" in some way.

So now the internal pilot is hidden when the walker
is active outside the aircraft.

Fix provided by Benedikt Hallinger
2020-11-19 19:03:07 +00:00

246 lines
6.6 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>
<lower-animation>
<property type="string"></property>
<factor type="float">0</factor>
<offset-deg type="float">-90</offset-deg>
<min type="float">-90</min>
<max type="float">0</max>
</lower-animation>
</legs>
</params>
<animation>
<type>select</type>
<condition>
<and>
<not>
<or>
<property>/sim/current-view/internal</property>
<property>/sim/walker/outside</property>
</or>
</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>
<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.3</x-m>
<y-m>0</y-m>
<z-m>0.307</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.3</x-m>
<y-m>0</y-m>
<z-m>0.307</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.3</x-m>
<y-m>0</y-m>
<z-m>0.307</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.398</x-m>
<y-m>0</y-m>
<z-m>0.202</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.146</x-m>
<y-m>0</y-m>
<z-m>-0.004</z-m>
</center>
</animation>
<!-- Legs -->
<animation>
<type>rotate</type>
<object-name>LeftUpperLeg</object-name>
<object-name>LeftLowerLeg</object-name>
<object-name>LeftFoot</object-name>
<object-name>RightUpperLeg</object-name>
<object-name>RightLowerLeg</object-name>
<object-name>RightFoot</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.27</x-m>
<y-m>0</y-m>
<z-m>-0.179</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>LeftLowerLeg</object-name>
<object-name>LeftFoot</object-name>
<object-name>RightLowerLeg</object-name>
<object-name>RightFoot</object-name>
<property alias="../../params/legs/lower-animation/property" />
<factor alias="../../params/legs/lower-animation/factor" />
<offset-deg alias="../../params/legs/lower-animation/offset-deg" />
<min alias="../../params/legs/lower-animation/min" />
<max alias="../../params/legs/lower-animation/max" />
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<center>
<x-m>0.298</x-m>
<y-m>0</y-m>
<z-m>-0.615</z-m>
</center>
</animation>
</PropertyList>