<?xml version="1.0"?>

<!-- A 1967 Formula One car -->
<car name="F1 1967">
  <exterior-model>
    <file>F1-1967.ac</file>
	<scale>1.0</scale>
	<translate>[ 1.10, 0.33, -0.04 ]</translate>
	<rotate>[ 0.0, 0.0, 0.0 ]</rotate>
  </exterior-model>

  <interior-model>
    <file>F1-1967-interior.ac</file>
	<scale>1.0</scale>
	<translate>[ 0.1, 0.02, 0.17 ]</translate>
	<rotate>[ 0.0, 0.0, 0.0 ]</rotate>
  </interior-model>

  <view>
    <position>[ 1.67, 0.35, 0.60 ]</position>
    <field-width>65.0</field-width>
	<near-plane>0.2</near-plane>
	<far-plane>700.0</far-plane>
	<pan-angle>60.0</pan-angle>
  </view>
  <mirror>
    <position>[ 2.0, 0.70, 0.49 ]</position>
	<size>[ 0.10, 0.10 ]</size>
	<direction>160.0</direction>
    <field-width>60.0</field-width>
	<near-plane>0.5</near-plane>
	<far-plane>400.0</far-plane>
	<mask>round-mask.png</mask>
  </mirror>
  <mirror>
    <position>[ 2.0, 0.10, 0.49 ]</position>
	<direction>200.0</direction>
  </mirror>

  <steering>
    <max-angle>25.0</max-angle>
	<exponent>2.0</exponent>
  </steering>

  <dashboard>
    <position>[ 2.20, 0.35, 0.4 ]</position>
	<tilt>0.0</tilt>
	<no-extras/>

    <tachometer>
	  <position>[ 0.0, 0.02, 0.0 ]</position>
	  <radius>0.045</radius>
	  <min>[ 0.0, 215.0 ]</min>
	  <max>[ 10000.0, 505.0 ]</max>
	  <face>tachometer-face.png</face>
	  <needle>needle.png</needle>
	</tachometer>

	<fuel-gauge>
	  <position>[ 0.09, 0.0, 0.0 ]</position>
	  <radius>0.025</radius>
	  <min>[ 0.0, 300.0 ]</min>
	  <max>[ 100.0, 420.0 ]</max>
	  <face>fuel-face.png</face>
	  <needle>needle.png</needle>
	</fuel-gauge>

	<gear-shift>
	  <position>[ 0.14, -0.18, -0.10 ]</position>
	  <size>[ 0.05, 0.05 ]</size>
	  <rotation>[ -90.0, -30.0, 0.0 ]</rotation>
	  <stick-positions>
	    [  0.015, -0.015 ]
	    [  0.00,  0.00 ]
		[ -0.015,  0.015 ]
		[ -0.015, -0.015 ]
	    [  0.00,  0.015 ]
	    [  0.00, -0.015 ]
	    [  0.015,  0.015 ]
	  </stick-positions>
	  <gate>shift-gate.png</gate>
	  <stick>gear-shift.png</stick>
	</gear-shift>

	<steering-wheel>
	  <position>[ 0.0, 0.0, 0.13 ]</position>
	  <radius>0.12</radius>
	  <min>[ -10.0, 110.0 ]</min>
	  <max>[ 10.0, -110.0 ]</max>
	  <image>1967-steering-wheel.png</image>
	</steering-wheel>
		<extras/>

  </dashboard>

  <drivetrain>
    <engine>
	  <position>[ 0.8, 0.35, 0.3 ]</position>
	  <mass>300.0</mass>
      <max-power>3.0e5</max-power>
	  <peak-engine-rpm>9000.0</peak-engine-rpm>
	  <rpm-limit>10000.0</rpm-limit>
	  <inertia>0.3</inertia>
	  <idle>0.015</idle>
	  <start-rpm>800</start-rpm>
	  <stall-rpm>0</stall-rpm>
	  <fuel-consumption>0.0001</fuel-consumption>

      <sound>
        <file>engine.wav</file>
		<pitch>0.009</pitch>
		<volume>0.4</volume>
		<throttle-volume-factor>3.0</throttle-volume-factor>
		<engine-speed-volume-factor>0.002</engine-speed-volume-factor>
	  </sound>
    </engine>

    <clutch>
      <sliding>0.5</sliding>
	  <radius>0.25</radius>
	  <area>0.2</area>
	  <max-pressure>3.0e4</max-pressure>
    </clutch>

    <transmission>
	  <forward-gears>5</forward-gears>
	  <first-ratio>2.53</first-ratio>
	  <last-ratio>1.10</last-ratio>
	  <shift-delay>0.2</shift-delay>
    </transmission>

    <differential>
      <final-drive>3.44</final-drive>
	  <anti-slip>100.0</anti-slip>
    </differential>
  </drivetrain>

  <fuel-tank>
    <position>[ 1.0, 0.35, 0.15 ]</position>
	<capacity>173.0</capacity>
	<volume>10.0</volume>
	<fuel-density>0.8</fuel-density>
  </fuel-tank>


  <!-- Wheels -->
  <wheel side="right" end="front">
    <model>
	  <slow-file>wheel.ac</slow-file>
	  <fast-file>wheel.ac</fast-file>
	  <stator-file>F1-1967-stator.ac</stator-file>
	  <transition-speed>30.0</transition-speed>
	  <stator-offset>-0.05</stator-offset>
	  <scale>0.20</scale>
	  <translate>[ 0.0, 0.0, 0.0 ]</translate>
	  <rotate>[ 0.0, 0.0, 0.0 ]</rotate>
    </model>

	<!-- 1.05    0.35    -0.35 -->
    <steered/>
    <position>[ 2.80, -0.4, 0.10 ]</position>
	<roll-height>0.24</roll-height>
	<mass>0.0</mass>
	<restitution>0.01</restitution>

	<!--   0.70   0.35  -0.05   -->
    <suspension>
	  <model>
		<file>F1-1967-arm.ac</file>
		<scale>0.32</scale>
		<translate>[ 0.0, 0.38, 0.28 ]</translate>
		<rotate>[ -0.15, 0.0, 0.0 ]</rotate>
	  </model>
	  <model>
		<file>F1-1967-wishbone.ac</file>
		<scale>0.25</scale>
		<translate>[ 0.0, 0.25, 0.15 ]</translate>
		<rotate>[ 0.2, 0.0, 0.0 ]</rotate>
	  </model>

	  <position>[ 2.80, -0.4, 0.0 ]</position>
	  <hinge>[ 1.4, -0.4, 0.0 ]</hinge>
	  <spring-constant>15000.0</spring-constant>
	  <bounce>1800.0</bounce>
	  <rebound>1800.0</rebound>
	  <travel>0.4</travel>
	  <max-compression-velocity>20.0</max-compression-velocity>
	  <camber>-3.0</camber>
	  <caster>0.0</caster>
	  <toe>-0.5</toe>
	</suspension>

	<tire>
	  <offset>0.3</offset>
      <friction>
        <longitudinal>
          [ 1.6, 0.0, 1500.0, 0.0, 400.0, 0.0, 0.0, 0.0, -10.0, 0.0, 0.0 ]
        </longitudinal>
	    <transverse>
	      [ 1.2, 0.0, 2000.0, 2400.0, 10.0, 0.0, -1.0, 1.5, -0.05, 0.0, 0.0, -8.0, -0.2, 0.0, 0.0 ]
	    </transverse>
	    <aligning>
	      [ 2.07, -6.49, -21.9, 0.416, -21.3, 2.94e-2, 0.0, -1.20, 5.23, -14.8, 0.0, 0.0, -3.74e-3, 3.89e-2, 0.0, 0.0, 0.0, 0.0 ]
	    </aligning>
	  </friction>
	  <radius>0.310</radius>
      <rolling-resistance>[ 1.3e-2, 6.5e-6 ]</rolling-resistance>
	  <rotational-inertia>10.0</rotational-inertia>
    </tire>
 
    <brakes>
	  <friction>0.8</friction>
	  <max-pressure>5.0e5</max-pressure>
      <front-bias>0.57</front-bias>
	  <radius>0.37</radius>
	  <area>0.01</area>
    </brakes>
  </wheel>

  <wheel side="left" end="front">
    <steered/>
    <position>[ 2.80, 1.10, 0.10 ]</position>
	<suspension>
	  <position>[ 2.80, 1.10, 0.0 ]</position>
	  <hinge>[ 1.4, 1.10, 0.0 ]</hinge>
	  <anti-roll>18000.0</anti-roll>
	</suspension>
  </wheel>

  <wheel side="right" end="rear">
    <model>
	  <slow-file>wheel.ac</slow-file>
	  <fast-file>wheel.ac</fast-file>
	  <transition-speed>30.0</transition-speed>
	  <scale>0.22</scale>
	  <translate>[ 0.0, 0.0, 0.0 ]</translate>
	  <rotate>[ 0.0, 0.0, 0.0 ]</rotate>
    </model>
    <driven/>
    <position>[ 0.37, -0.40, 0.08 ]</position>
    <suspension>
	  <model>
		<file>F1-1967-wishbone.ac</file>
		<scale>0.35</scale>
		<translate>[ 0.0, 0.40, 0.24 ]</translate>
		<rotate>[ 0.2, 0.0, 0.0 ]</rotate>
	  </model>
	  <model>
		<file>F1-1967-wishbone.ac</file>
		<scale>0.35</scale>
		<translate>[ 0.0, 0.40, 0.05 ]</translate>
		<rotate>[ 0.2, 0.0, 0.0 ]</rotate>
	  </model>
	  <position>[ 0.37, -0.40, 0.0 ]</position>
	  <hinge>[ 1.5, -0.40, 0.0 ]</hinge>
	  <spring-constant>22000.0</spring-constant>
	  <camber>-3.0</camber>
	  <caster>0.0</caster>
	  <toe>0.5</toe>
	</suspension>
    <tire>
	  <radius>0.33</radius>
	</tire>
  </wheel>

  <wheel side="left" end="rear">
    <driven/>
    <position>[ 0.37, 1.10, 0.08 ]</position>
	<suspension>
	  <position>[ 0.37, 1.10, 0.0 ]</position>
	  <hinge>[ 1.5, 0.90, 0.0 ]</hinge>
	  <anti-roll>10000.0</anti-roll>
	</suspension>
  </wheel>

  <contact-point>
    <mass>20.0</mass>
    <position>[ 0.0, 0.0, 0.0 ]</position>
	<material>metal</material>
	<friction>0.5</friction>
	<restitution>0.1</restitution>
  </contact-point>

  <contact-point>
    <position>[ 3.75, 0.0, 0.2 ]</position>
    <mass>20.0</mass>
  </contact-point>

  <contact-point>
    <position>[ 0.0, 0.7, 0.0 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 3.75, 0.7, 0.2 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 0.0, 0.0, 0.4 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 3.75, 0.0, 0.4 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 0.0, 0.7, 0.4 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 3.75, 0.7, 0.4 ]</position>
  </contact-point>

  <contact-point>
    <position>[ 0.5, 0.35, 0.4 ]</position>
	<mass>20.0</mass>
  </contact-point>

  <contact-point>
    <position>[ 1.5, 0.35, 0.6 ]</position>
	<mass>20.0</mass>
  </contact-point>

  <particle>
    <position>[ 1.58, 0.35, 0.2 ]</position>
	<mass>70.0</mass>
  </particle>

  <drag>
    <position>[ 2.0, 0.35, 0.25 ]</position>
	<frontal-area>1.5</frontal-area>
	<drag-coefficient>0.3</drag-coefficient>
  </drag>
</car>
