car
{
  name=Volkswagen Rabbit
  id=vw_rabbit
  version=090b
  credits=by Mnichu
  comments=
  year=1978
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.8
    length=3.8
  }
  cg
  {
    x=0	
    y=-0.25
    z=0
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=1.20
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}
body
{
  mass=800		;800kg (car) + 50kg (wheels) = 850kg
  restitution_coeff=0.3
  inertia
  {
    x=2875
    y=2600
    z=625
  }
  model
  {
    file=rabbit.dof
  }
  model_incar
  {
    file=rabbit.dof
  }
  model_light_l
  {
    file=light.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
  width=1.605
  height=1.410
  length=3.705
  manual_box=1
}
steer
{
  x=0.28
  y=0.23
  z=0.30
  lock=900
  model
  {
    file=kierownica.dof
  }
}
engine
{
  mass=1
  max_rpm=6350
  idle_rpm=900
  stall_rpm=700
  start_rpm=800
  autoclutch_rpm=1500
  starter=1
  start_stalled=1
  starter_torque=40
  curve_torque=torque.crv
  max_torque=0.95
  reaction=1
  shifting
  {
    automatic=0
    shift_up_rpm=5800
    shift_down_rpm=3800
    time_to_declutch=180
    time_to_clutch=180
  }
  inertia
  {
    engine=0.1
    final_drive=3.9
  }
  braking_coeff=0.75
  rolling_friction_coeff=0.9
  sample=engine.wav
  sample_rpm=6000
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-3.90
    inertia=0.9
  }
  gear1
  {
    ratio=3.45
    inertia=0.13
  }
  gear2
  {
    ratio=1.94
    inertia=0.09
  }
  gear3
  {
    ratio=1.37
    inertia=0.07
  }
  gear4
  {
    ratio=0.97
    inertia=0.05
  }
}
clutch
{
  max_torque=420
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.9
  locking_coefficient=0
  output0=0
  output1=1
}
aero
{
  body
  {
    center=0 0 0
    cx=0.42
    area=1.7
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=0
    k=10000
  }
}
susp_front
{
  y=0.0
  z=1.106
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.538
  minlen=0.355
  maxlen=0.555
  ;1.55Hz, 295.7475kg
  k=38000
  ;0.7*CD=4032
  bump_rate=3750	
  rebound_rate=5994
  bump_function=0
  rebound_function=0
  anti_pitch=0.15
  ;20°/m ???
  camber_change_per_m=0.349
  ;-4° ???
  caster_offset=-0.022
  roll_center
  {
    x=0
    y=-0.642
    z=0
  }
}
susp_rear
{
  y=0.0
  z=-1.175
  ;80mm bump travel, 120mm rebound travel -> 435mm
  restlen=0.521
  minlen=0.355
  maxlen=0.555
  ;1.7HZ, 286.7525kg, should be progressive springs...
  k=38000	
  ;0.7*CD=4288	
  bump_rate=3346	
  rebound_rate=8647	
  bump_function=0
  rebound_function=0
  anti_pitch=0.0
  camber_change_per_m=0.0
  roll_center
  {
    x=0
    y=-0.477
    z=0
  }
}
susp0~susp_front
  {
    x=0.634
    camber_change_steering=0.050
    toe_change_per_m=0.020
  }
susp1~susp_front
  {
    x=-0.634
    camber_change_steering=-0.050
    toe_change_per_m=-0.020
  }
susp2~susp_rear
  {
    x=0.624
    toe_change_per_m=0.0
  }
susp3~susp_rear
  {
    x=-0.624
    toe_change_per_m=0.0
  }
tire_model
{
   relaxation_length_lat=0.91
   relaxation_length_long=.091
   damping_speed=0.15
   damping_coefficient_lat=0.75
   damping_coefficient_long=1.5
}
pacejka
{
        a0=1.25
	a1=-35
	a2=1200
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1350
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.11
	optimal_slipangle=0.145
}
wheel_front
{
  y=0.15
  z=0
  steering=1
  powered=0
  lock=52
  ackerman=1.1
  mass=30
  inertia=1.0
  radius=0.29
  rolling_coeff=0.05
  max_braking=1450
  braking_factor=1
  tire_rate=175000
  pacejka~pacejka
}
wheel_rear
{
  y=0.15
  z=0
  steering=0
  lock=0
  powered=0
  mass=38
  inertia=1.0
  radius=0.29
  rolling_coeff=0.015
  max_braking=900
  max_handbrake_torque=5600
  tire_rate=160000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0.5
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
  }
}
wheel1~wheel_front
{
  x=-0
  toe=0.5
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  camber=0
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
  }
}
wheel3~wheel_rear
{
  x=-0
  toe=0
  camber=0
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
  }
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.25
    y=0.41
    z=-0.11
  }
  offset_to
  {
    x=0.39
    y=-0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    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.1
    y=0.40
    z=-0.03
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  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.5
    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=-5
  }
  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=-5
  }
  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
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
acc_all
{
attack=1400
decay=1000
}
accelerate_out
{
volume=2
smp0~audio.acc_all
{
sample=engine.wav
min=100
max=6350
natural=6000
}
}
