car
{
  name=Volkswagen Polo 1.3 G40 (86C)
  year=1991
  credits=Model by ?, Converted by Arouca21, Miguel1.8Turbo
  comments=PY: 1.272 cm³, 113 HP (83 kW) @ 6.000 RPM, 150 NM @ 3.800 RPM
  id=vwpolog40
  version=090b
  wheels=4
  shadow
  	{
    	 	texture=shadow.tga
     	 	length=4.2
     	 	width=1.9
      		offset_z=0
		intensity_dark=0.5
		intensity_light=0.5
  }

	cg
	{
		x=0
		y=-0.25
		z=0.2
	}
	ff_factor=1.00
  ff_gain=0.65
  ff_damping=0
  ff_friction=1
  ff_inertia=0
  ff_stickfriction=1
}

graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=bancos.dof
                }
                model1
                {
                        file=capot.dof
                }
                model2
                {
                        file=choques_frente.dof
                }
                model3
                {
                        file=choques_tras.dof
                }
                model4
                {
                        file=escape.dof
                }
                model5
                {
                        file=mala.dof
                }
                model6
                {
                        file=porta_condutor.dof
                }
                model7
                {
                        file=porta_passageiro.dof
                }
                model8
                {
                        file=roof_1.dof
                }
                model9
                {
                        file=

    		}
	}
}

body
{
	x=0
	y=0
	z=0
	mass=930
	inertia
	{
            x=1900
            y=2100
            z=460
	}
	width=2.04
	height=0.80
	length=3.500
	manual_box=1
	model
	{
		file=body.dof
	}
	model_incar
	{
		file=body.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_r
  {
    file=re.dof
}
}


steer
{
	x=0.32
	y=0.18
	z=0.29
	xa=15.9		
	lock=1080		
	linearity=0.25
	model
	{
		file=volante.dof
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0
	idle_rpm=800
	max_rpm=7000
	stall_rpm=500
	start_rpm=1100
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=torque.crv
	max_torque=150
	shifting
	{
		automatic=0
		shift_up_rpm=6000
		shift_down_rpm=3000
		time_to_declutch=50
      time_to_clutch=50
      time_in_neutral=200
      time_to_declutch_down=150
      time_to_clutch_down=100
      time_in_neutral_down=200
	}
	inertia
	{
		engine=0.18
		final_drive=0.1
	}
	braking_coeff=1.94
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}
clutch
{
  max_torque=250
}
gearbox
{
  gears=6
  gear0
  {
    ratio=-3.38
    inertia=0.11
  }
  gear1
  {
    ratio=3.45
    inertia=0.02
  }
  gear2
  {
    ratio=2.09
    inertia=0.04
  }
  gear3
  {
    ratio=1.47
    inertia=0.06
  }
  gear4
  {
    ratio=1.10
    inertia=0.08
  }
  gear5
  {
    ratio=0.85
    inertia=0.1
  }
}

differential
{
	type=1
	ratio=3.78
	inertia=0.1
	locking_coeff=45
	output0=0
	output1=1
}

abs
{
	max_velocity_ratio=1.25
	min_velocity_ratio=1.15
	enable=1
}
handbrakes
{
	wheels=23
;
}
aero
{
  body
  {
    center=0 0 0
    cx=0.34
    area=2
  }
   draft
  {
    scale_lat_rear=0.4
    scale_lon_rear=1
    scale_lat_front=0.08
    scale_lon_front=0.2
  }
  wings=1
  wing0
  {
    name=Wing 1
    span=1
    cord=0.1
    coeff_drag=0.33
    coeff_down=0
    center=0 0 0.0
    angle=0
    angle_offset=10

	}
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=1450
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=1455
	}
}

susp_front
{
	y=-0.1
	z=1.165
	restlen=0.310			;293	395kg
	minlen=0.12
	maxlen=0.365
	restlen=0.765			;293	395kg
	minlen=0.12
	maxlen=0.365
	k=35000		;@ static load and 1.316 NF SR
	bump_rate=9950		;0.7	1944
	rebound_rate=9950	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.9
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=-0.1
	z=-1.21
	restlen=0.310			;305	275kg
	minlen=0.1
	maxlen=0.335
      k=35000				;@ static load and 1.502 NF SR
	bump_rate=8750		;0.75	1852
	rebound_rate=8400	;0.8	5191
	bump_function=0
	rebound_function=0
	anti_pitch=0.14
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.552	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.65
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.66
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.65
}
susp3~susp_rear
{
	x=-0.66
}

;----------------------tyres----------------------

tire_model
{
  relaxation_length_lat=0.91
  relaxation_length_long=.091
  damping_speed=8.45
  damping_coefficient_lat=1
  damping_coefficient_long=1
}
pacejka
{
 a0=1.2
    a1=-25
    a2=1200
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1100
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    c5=0.0
    c6=0.0
    c7=0.044
    c8=-0.58
    c9=0.18
    c10=0.043
    c11=0.048
    c12=-0.0035
    c13=-0.18
    c14=0.14
    c15=-1.029
    c16=0.27
    c17=-1.1

    optimal_slipratio=0.12
    optimal_slipangle=0.173
}
wheel_all
{
  ; Brakedisc temperature
  brake_heating=0.035
  brake_dissipation=0.0055
  brake_max_temp=5000
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
      power_gearing=0.31
	lock=68
	mass=15.8
	inertia=1.3
	radius=0.303
	rolling_coeff=0.017
	max_braking=1100
	braking_factor=1
	tire_rate=185000
	pacejka~pacejka
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
      mass=15.8
	inertia=1.3
	radius=0.303
	rolling_coeff=0.017
	max_braking=500
	braking_factor=0.25
	max_handbrake_torque=3500
	tire_rate=185000
	pacejka~pacejka
	}
}

wheel0~wheel_front
{
  x=0.
  ackerman=1.1
  toe=-0.36
  camber=-1
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=left_brakes.dof
  }
}
wheel1~wheel_front
{
  x=0.
  ackerman=1.1
  toe=0.36
  camber=-1
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=right_brakes.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-0.5
  model
  {
    file=left.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=left_brakes.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-0.5
  model
  {
    file=right.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=right_brakes.dof
  }
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
  skid
  {
    volume=0.8
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=v8/horn.wav
  }
  accelerate_out
  {
  smp0~audio.acc_all
    {
      sample=g40/hi.wav
      volume=1
      min=2000
      max=9999
     attack=1000
      decay=1500
      natural=6000
    }
  smp1~audio.acc_all
    {
      sample=g40/idle.wav
      volume=1
      min=500
      max=2000
     attack=300
      decay=1000
      natural=750
    }
  smp2~audio.acc_all
    {
      sample=g40/sc.wav
      volume=1
      min=2000
      max=6500
     attack=500
      decay=1000
      natural=6000
    }
     }  
  decelerate_out
  {
  smp0~audio.acc_all
    {
      sample=g40/hi.wav
      volume=1
      min=2000
      max=9999
     attack=1000
      decay=1500
      natural=6000
    }
  smp1~audio.acc_all
    {
      sample=g40/idle.wav
      volume=1
      min=500
      max=2000
     attack=300
      decay=1000
      natural=750
    }
  }  
 accelerate_in
  {
      smp0~audio.acc_all
    {
      sample=g40/hiin.wav
      volume=1
      min=2000
      max=9999
     attack=1000
      decay=1500
      natural=6000
    }
  smp1~audio.acc_all
    {
      sample=g40/idlein.wav
      volume=1
      min=500
      max=2000
     attack=300
      decay=1000
      natural=750
    }
smp2~audio.acc_all
    {
      sample=g40/scin.wav
      volume=1
      min=2000
      max=6500
     attack=500
      decay=1000
      natural=6000
      volume=0.4
    }
  }  
  decelerate_in
  {
       smp0~audio.acc_all
    {
      sample=g40/hiin.wav
      volume=1
      min=2000
      max=9999
     attack=1000
      decay=1500
      natural=6000
    }
  smp1~audio.acc_all
    {
      sample=g40/idlein.wav
      volume=1
      min=500
      max=2000
     attack=300
      decay=1000
      natural=750
    }
  }  
wind
  {
    volume=1
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
;----------------------driving aids----------------------

traction_control
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.05
	enable=0
}

abs
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.1
	enable=0
}


;---------------------------------------------
;Cameras
;---------------------------------------------
camera0
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.41
    z=-0.34
  }
  offset_to
  {

    x=0.35
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.41
    z=-0.34
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
     x=0.32
    y=0.41
    z=-0.34
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver
  fov=60
  model=1
  wheels=0
  view=0
  offset
  {
     x=-0.32
    y=0.41
    z=-0.34
  }
  offset_to
  {

    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.3
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow

  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}

	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  offset
  {
    x=0.0
    y=1.4
    z=-4
  }
  angle
  {
    x=0.000000
    y=130.000000
    z=0.000000
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=75
  model=0
  wheels=0
  view=0
  src
  {
    mass=6
    k=250
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=100
    damping=70
    maxdist=2
  }
}
camera9
{
  name=Chase rear
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.0
    y=-0.65
    z=0.0
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
}