Howto:Set view points: Difference between revisions

<limits> code block moved within the <config> tags (before the limits didn't work), explanation reordred accordingly
m (→‎Tower view: link added)
(<limits> code block moved within the <config> tags (before the limits didn't work), explanation reordred accordingly)
Line 22: Line 22:
     <from-model-idx type="int">0</from-model-idx>
     <from-model-idx type="int">0</from-model-idx>
     <ground-level-nearplane-m type="double">6f</ground-level-nearplane-m>
     <ground-level-nearplane-m type="double">6f</ground-level-nearplane-m>
    <limits>
      <enabled type="bool">true</enabled>
      <left>
        <heading-max-deg type="double">140</heading-max-deg>
        <x-offset-max-m type="double">0.15</x-offset-max-m>
        <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
      </left>
      <right>
        <heading-max-deg type="double">140</heading-max-deg>
        <x-offset-max-m type="double">0.15</x-offset-max-m>
        <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
      </right>
    </limits>
   </config>
   </config>
   <dynamic>
   <dynamic>
     <enabled type="bool">false</enabled>
     <enabled type="bool">false</enabled>
   </dynamic>
   </dynamic>
  <limits>
    <enabled type="bool">true</enabled>
    <left>
      <heading-max-deg type="double">140</heading-max-deg>
      <x-offset-max-m type="double">0.15</x-offset-max-m>
      <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
    </left>
    <right>
      <heading-max-deg type="double">140</heading-max-deg>
      <x-offset-max-m type="double">0.15</x-offset-max-m>
      <x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
    </right>
  </limits>
  </view>
  </view>


Line 50: Line 50:
** '''pitch-offset-deg''' the pitch of the view.
** '''pitch-offset-deg''' the pitch of the view.
** '''default-field-of-view-deg''' the larger this number, the wider the view. Around 55-65 is the most common setting.
** '''default-field-of-view-deg''' the larger this number, the wider the view. Around 55-65 is the most common setting.
* '''dynamic'''
** '''enabled''' when set to true, this enables dynamic view, which rotates the view based on control input (to simulate a pilot looking into the direction he steers to).
* '''limits''' you can limit the view movements, in order to simulate the fact that a human is unable to turn its head 360 degrees.
* '''limits''' you can limit the view movements, in order to simulate the fact that a human is unable to turn its head 360 degrees.
** '''enabled''' set to true to enable limits.
** '''enabled''' set to true to enable limits.
Line 58: Line 56:
*** '''x-offset-max-m'''
*** '''x-offset-max-m'''
*** '''x-offset-threshold-deg'''
*** '''x-offset-threshold-deg'''
* '''dynamic'''
** '''enabled''' when set to true, this enables dynamic view, which rotates the view based on control input (to simulate a pilot looking into the direction he steers to).


Additionally, you can place the following line after the last </view> tag. It is used to define the distance to the aircraft of the default views: chase, helicopter
Additionally, you can place the following line after the last </view> tag. It is used to define the distance to the aircraft of the default views: chase, helicopter
9

edits