car
{
   name=Volkswagen Passat B6 R36
  year=2009
  credits=
  comments=
   wheels=4
  id=volkswagenpassatb6R36
  version=090b
  skid
  {
    sample=skid.wav
  }
 cg
 {
  x=0
  y=-0.15
  z=0.0
 }
  ff_factor=1.0
  ff_friction=0.7
  ff_stickfriction=0.25
  ff_damping=1.0
  ff_inertia=1.0
  ff_gain=1.0
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=capot.dof
                }
                model1
                {
                        file=choques_frente.dof
                }
                model2
                {
                        file=choques_tras.dof
                }
                model3
                {
                        file=mala.dof
                }
                model4
                {
                        file=porta_condutor.dof
                }
                model5
                {
                        file=porta_passageiro.dof
                }
                model6
                {
                      file=porta_tras_direita.dof
                }
                model7
                {
                        file=porta_tras_esquerda.dof
                }
                model8
                {
                        file=escape.dof
                }
                model9
                {
                        file=

    		}
	}
}

body
{
  mass=1747
  inertia
  {
    x=2300
    y=2400
    z=475
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=lightsin.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_lightsteer_l
  {
    file=lights_steer.dof
  }
  model_reverse_l
  {
    file=lights_reverse.dof
  }
  model_reverse_r
  {
    file=reverse camera.dof
  }
}

steer
{
  x=0.40
  y=0.245
  z=0.52
  radius=15
  xa=15.9
   lock=1080
  linearity=0.25
  model
  {
      file=volante_r36.dof
  }
}
lights
{
  light0
  {
    texture=light.tga
    fov=55.0
    aspect=5.0
    z=1
    far=120
    pitch=0
    color=2.25 2.25 3
  }
}
animation
{
  flash_lights=0
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=0
  idle_rpm=850
  max_rpm=8000
  stall_rpm=400
  start_rpm=900
  autoclutch_rpm=1250
  starter_torque=100
  curve_torque=torque.crv
  max_torque=350 (300cv)
  shifting
  {
    automatic=0
    shift_up_rpm=6400
    shift_down_rpm=2500
    time_to_declutch=250
    time_to_clutch=50
  }
  inertia
  {
    engine=0.25
    final_drive=0.1
  }
  braking_coeff=2.5
  rolling_friction_coeff=0.5
  sample=engine.wav
  sample_rpm=5000
}
gearbox
{
  gears=7
  gear0
  {
    ratio=-3.081
    inertia=0.1
  }
  gear1
  {
    ratio=3.361
    inertia=0.06
  }
  gear2
  {
    ratio=2.091
    inertia=0.05
  }
  gear3
  {
    ratio=1.471
    inertia=0.04
  }
  gear4
  {
    ratio=1.101
    inertia=0.03
  }
  gear5
  {
    ratio=0.861
    inertia=0.02
  }
  gear6
  {
    ratio=0.721
    inertia=0.01
  }
  end_ratio=4.241
}
differential
{
   type=1
   ratio=4.200
   inertia=0.02
   locking_coeff=75
   clutches=1
   power_angle=0
   coast_angle=0
   clutch_factor=1
   output0=0
   output1=1
}
clutch
{
  max_torque=400
}
handbrakes
{
  wheels=23
}
aero
{
  body
  {
    center=0 0 0
    cx=0.30
    area=2.29		
  }
  wings=1
  wing0
  {
    name=Overall aerodynamic effect R
    span=1
    cord=0.1
    coeff_drag=0
    coeff_down=8.5
    center=0 0.03 -1.38
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=1
    susp_right=0
    k=21000 ;36600
  }
  arb1
  {
    susp_left=3
    susp_right=2
    k=16000  ;21800
  }
}
susp_front                    
{
  y=0.045
  z=1.3930
  restlen=0.400		;245mm,288.2kg/2826N, 12.5cm ground clearance
  minlen=0.17
  maxlen=0.34
  k=41000 	;k=m(nf/0.159)sq NF ~ 1.7 ~ 36936N/m
  bump_rate=1300	;1283*1.0
  rebound_rate=4950	;6163*0.8
  bump_function=0
  bump_max=1300
  rebound_function=0
  anti_pitch=0.09
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.78	;-1.5cm
    z=0
  }
}
susp_rear
{
  y=0.04
  z=-1.2826
  restlen=0.400		;255mm, 366.8kg/3597N
  minlen=0.125
  maxlen=0.34
  k=50000 	;k=m(nf/0.159)sq NF ~ 1.8 ~ 58036N/m
  bump_rate=1800	;1814*1.0
  rebound_rate=6650	;8305*0.8
  bump_function=0
  bump_max=1800
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0.45	;2.3 degree per 0.1m deflection!
  roll_center
  {
    x=0
    y=-0.731		;6.5cm
    z=0
  }
}
susp0~susp_front
  {
    x=0.80
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
    
  }
susp1~susp_front
  {
    x=-0.80
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=0		;5.78 degrees static caster -0.017!
  }
susp2~susp_rear
  {
    x=0.81
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
susp3~susp_rear
  {
    x=-0.81
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
  }
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1350
    a3=4000
    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=1350
    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_front
{
  y=0
  z=0
  steering=1
  lock=55
  mass=30
  inertia=1.5
  radius=0.335
  width=0.205
  powered=1
  rolling_coeff=0.0180
  friction_road=1
  max_braking=1700
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=30
  inertia=1.5
  radius=0.335
  width=0.205
  powered=0
  rolling_coeff=0.0205
  friction_road=1
  max_braking=500
  max_handbrake_torque=1900
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {

  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.1
  toe=-0.36
  camber=-0.2
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.1
  toe=0.36
  camber=-0.2
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-.1
  model
  {
    file=left.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper_left1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-.1
  model
  {
    file=right.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper_right1.dof
  }
}
camera0
{
  name=Driver
  fov=74
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.4
    y=0.56
    z=-0.30
  }
  offset_to
  {
    x=0.38
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.45
    y=0.56
    z=-0.30
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.45
    y=0.56
    z=-0.30
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=-0.15
    y=0.56
    z=-0.30
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=130
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=1.4
    y=0.06
    z=-0.5
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.0
    z=0.1
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
	skid
	{
		sample=skid.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

;	------------------ OUT

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=a1000.wav
			min=1
			max=1001
			natural=1000
			volume=1
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=a2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=a4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=a6000.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=d850.wav
			min=1
			max=1001
			natural=850
			volume=1.25
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=d2000.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=d4000.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d6000.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

;	------------------ IN

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=a1000i.wav
			min=1
			max=1001
			natural=1000
			volume=1
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=a2000i.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=a4000i.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=a6000i.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}


	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=d850i.wav
			min=1
			max=1001
			natural=850
			volume=1.25
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=d2000i.wav
			min=2000
			max=2001
			natural=2000
			volume=1
			attack=1300
		}
		smp2~audio.acc_all
		{
			sample=d4000i.wav
			min=4000
			max=4001
			natural=4000
			volume=1
		}
		smp3~audio.acc_all
		{
			sample=d6000i.wav
			min=6000
			max=9000
			natural=6000
			volume=1
		}
	}

	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
		}
	}
}

abs
{
  max_velocity_ratio=3 
  min_velocity_ratio=2.5
  min_velocity=2.5
  enable=3
}
traction_control
{
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
  	enable=1

}