<?xml version="1.0"?>

<track name="Indianapolis">

  <sky>
    <sides>textures/sky_sides.png</sides>
	<top>textures/sky_top.png</top>
	<bottom>textures/sky_bottom.png</bottom>
	<smooth/>
  </sky>

  <!-- Material Properties -->

  <material name="track" type="asphalt">
	<friction>1.0</friction>
	<restitution>0.1</restitution>
	<rolling>1.0</rolling>
	<drag>0.0</drag>
	<bump-amplitude>0.01</bump-amplitude>
	<bump-wavelength>100.0</bump-wavelength>
	<texture>
	  <file>textures/track2.png</file>
	  <length>200.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="grass" type="grass">
	<friction>0.7</friction>
	<restitution>0.1</restitution>
	<rolling>5.0</rolling>
	<drag>20.0</drag>	
	<bump-amplitude>0.03</bump-amplitude>
	<bump-wavelength>2.0</bump-wavelength>
	<texture>
	  <file>textures/grass.png</file>
	  <width>10.0</width>
	  <length>12.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="gravel" type="gravel">
	<friction>0.8</friction>
	<restitution>0.0</restitution>
	<rolling>40.0</rolling>
	<drag>200.0</drag>	
	<bump-amplitude>0.05</bump-amplitude>
	<bump-wavelength>2.0</bump-wavelength>
	<texture>
	  <file>textures/gravel3.png</file>
	  <width>10.0</width>
	  <length>10.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="tires" type="rubber">
	<friction>1.0</friction>
	<restitution>0.8</restitution>
	<rolling>1.0</rolling>
	<drag>5.0</drag>
	<bump-amplitude>0.0</bump-amplitude>
	<bump-wavelength>1.0</bump-wavelength>
    <texture>
	  <file>textures/tires.png</file>
	  <width>0.33</width>
	  <length>3.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="rail" type="metal">
	<friction>1.0</friction>
	<restitution>0.1</restitution>
	<rolling>1.0</rolling>
	<drag>0.0</drag>	
	<bump-amplitude>0.0</bump-amplitude>
	<bump-wavelength>1.0</bump-wavelength>
    <texture>
	  <file>textures/rail.png</file>
	  <width>0.5</width>
	  <length>10.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="wall" type="concrete">
	<friction>1.0</friction>
	<restitution>0.1</restitution>
	<rolling>1.0</rolling>
	<drag>0.0</drag>
	<bump-amplitude>0.0</bump-amplitude>
	<bump-wavelength>1.0</bump-wavelength>
	<texture>
	  <file>textures/wall.png</file>
	  <width>1.0</width>
	  <length>10.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <material name="kerb" type="concrete">
	<friction>1.0</friction>
	<restitution>0.1</restitution>
	<rolling>1.0</rolling>
	<drag>0.0</drag>
	<bump-amplitude>0.06</bump-amplitude>
	<bump-wavelength>2.0</bump-wavelength>
	<texture>
	  <file>textures/blue-kerb.png</file>
	  <width>2.0</width>
	  <length>4.0</length>
	  <smooth/>
	  <mipmap/>
	</texture>
  </material>

  <!-- Segment Properties -->

  <segment name="straight">
    [ wall grass kerb track kerb grass wall ]
  </segment>
  <segment name="left turn">
    [ wall grass kerb track kerb gravel wall ]
  </segment>
  <segment name="right turn">
    [ wall gravel kerb track kerb grass rail ]
  </segment>
  <segment name="paved">
    [ tires track kerb track kerb grass wall ]
  </segment>

  <!-- The Track -->  

  <start-direction>90.0</start-direction>
  <road segment="straight">
    <resolution>10.0</resolution>
    <length>600.0</length>
	<left-width>[ 0.0, 25.0 ]</left-width>
	<right-width>[ 0.0, 25.0 ]</right-width>
	<left-road-width>[ 0.0, 25.0 ]</left-road-width>
	<right-road-width>[ 0.0, 8.0 ]</right-road-width>
	<left-wall-height>1.0</left-wall-height>
	<right-wall-height>1.0</right-wall-height>
	<braking-marker>
	  <file>textures/50.png</file>
	  <distance>50.0</distance>
	  <size>[ 1.4, 0.7 ]</size>
	  <offset>[ -1.4, 1.3 ]</offset>
	  <side>left</side>
	</braking-marker>
	<braking-marker>
	  <file>textures/100.png</file>
	  <distance>100.0</distance>
	</braking-marker>
	<braking-marker>
	  <file>textures/150.png</file>
	  <distance>150.0</distance>
	</braking-marker>
  </road>

  <road segment="paved">
    <resolution>2.0</resolution>
    <length>45.0</length>
    <radius>-30.0</radius>
	<left-road-width>[ 40.0, 8.0 ]</left-road-width>
	<right-kerb>
	  <start>
	    <transition>
		  <length>4.0</length>
		  <width>2.1</width>
		</transition>
	  </start>
	  <end>
	    <transition>
		  <length>4.0</length>
		  <width>2.1</width>
		</transition>
	  </end>
	  <profile>[ 1.0, 0.1 ][ 2.0, 0.1 ][ 2.1, 0.0 ]</profile>
	</right-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>30.0</length>
  </road>

  <road segment="left turn">
    <resolution>2.0</resolution>
    <length>63.0</length>
    <radius>42.0</radius>
	<left-kerb>
	  <start>
	    <transition>
		  <length>4.0</length>
		  <width>2.1</width>
		</transition>
	  </start>
	  <end>
	    <transition>
		  <length>4.0</length>
		  <width>2.1</width>
		</transition>
	  </end>
	  <profile>[ 1.0, 0.1 ][ 2.0, 0.1 ][ 2.1, 0.0 ]</profile>
	</left-kerb>
  </road>

  <road segment="left turn">
    <resolution>10.0</resolution>
    <length>60.0</length>
	<right-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>40.0</distance>
	    <transition/>
	  </end>
	</right-kerb>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>125.0</length>
    <radius>-120.0</radius>
	<right-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</right-kerb>
  </road>

  <road segment="right turn">
    <resolution>10.0</resolution>
    <length>80.0</length>
	<left-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>40.0</distance>
	    <transition/>
	  </end>
	</left-kerb>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>105.0</length>
    <radius>-50.0</radius>
	<right-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</right-kerb>
  </road>

  <road segment="right turn">
    <resolution>10.0</resolution>
    <length>120.0</length>
	<left-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</left-kerb>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>70.0</length>
    <radius>-80.0</radius>
	<right-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</right-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>152.0</length>
  </road>

  <road segment="left turn">
    <resolution>2.0</resolution>
    <length>157.0</length>
    <radius>50.0</radius>
	<left-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</left-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>50.0</length>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>88.0</length>
    <radius>-48.0</radius>
	<right-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</right-kerb>
  </road>

  <road segment="paved">
    <resolution>2.0</resolution>
    <length>47.877872</length>
    <radius>-109.728</radius>
	<right-road-width>[ 47.0, 12.0 ]</right-road-width>
  </road>

  <!-- Hulman Boulevard -->
  <road segment="paved">
    <resolution>10.0</resolution>
    <length>530.0</length>
	<left-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>80.0</distance>
	    <transition/>
	  </end>
	</left-kerb>
	<braking-marker>
	  <file>textures/50.png</file>
	  <distance>50.0</distance>
	  <size>[ 1.4, 0.7 ]</size>
	  <offset>[ 2.0, 0.0 ]</offset>
	  <side>right</side>
	</braking-marker>
	<braking-marker>
	  <file>textures/100.png</file>
	  <distance>100.0</distance>
	</braking-marker>
	<braking-marker>
	  <file>textures/150.png</file>
	  <distance>150.0</distance>
	</braking-marker>
  </road>

  <road segment="straight">
    <resolution>2.0</resolution>
    <length>63.0</length>
    <radius>40.0</radius>
	<right-road-width>[ 63.0, 8.0 ]</right-road-width>
	<left-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</left-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>76.2</length>
  </road>

  <!-- Hairpins -->
  <road segment="straight">
    <resolution>2.0</resolution>
    <length>84.0</length>
    <radius>-30.0</radius>
	<right-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</right-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>30.0</length>
  </road>

  <road segment="straight">
    <resolution>2.0</resolution>
    <length>84.0</length>
    <radius>30.0</radius>
	<left-kerb>
	  <start><transition/></start>
	  <end><transition/></end>
	</left-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>167.0</length>
	<right-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>80.0</distance>
	    <transition/>
	  </end>
	</right-kerb>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>140.0</length>
    <radius>-80.0</radius>
	<right-kerb>
	  <start><transition/></start>
	</right-kerb>
  </road>

  <road segment="right turn">
    <resolution>10.0</resolution>
    <length>150.0</length>
	<left-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>60.0</distance>
	    <transition/>
	  </end>
	</left-kerb>
  </road>

  <road segment="right turn">
    <resolution>2.0</resolution>
    <length>57.0</length>
    <radius>-260.0</radius>
  </road>

  <road segment="straight">
    <resolution>2.0</resolution>
    <length>116.0</length>
    <radius>-185.0</radius>
	<bank>-3.0</bank>
	<bank-pivot>8.0</bank-pivot>
  </road>
  <road segment="paved">
    <resolution>2.0</resolution>
    <length>100.0</length>
    <radius>-185.0</radius>
	<bank>-3.0</bank>
	<bank-pivot>8.0</bank-pivot>
	<left-road-width>[ 100.0, 25.0 ]</left-road-width>
	<left-kerb>
	  <start><transition/></start>
	  <end>
	    <distance>80.0</distance>
	    <transition/>
	  </end>
	</left-kerb>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>198.12</length>
	<bank>-6.0</bank>
  </road>

  <road segment="straight">
    <resolution>2.0</resolution>
    <length>411.749700</length>
    <radius>-262.128</radius>
  </road>

  <road segment="straight">
    <resolution>10.0</resolution>
    <length>200.0</length>
	<bank>0.0</bank>
  </road>

  <!-- Force the track to close --> 
  <circuit/>

  <!-- Define the timing sectors -->
  <timing-line>10.0</timing-line>
  <timing-line>1100.0</timing-line>
  <timing-line>2600.0</timing-line>

  <track-length>4195.0</track-length>
</track>
