;Made from scratch by Sam Jigga.
;
;Credits to:
;Sounds - Renault Alpine A310 V6 (Credits to the authors)

car
{
  name=Dacia 1310
  year=1980
  id=80dacia1310
  version=050f
  credits=Sam Jigga
  comments=car.ini by BMWspain & Mirkules
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.
    length=4.6
  }
  cg
  {
    x=0
    y=-.19
    z=0.15
  }
}
body
{
  mass=770
  inertia
  {
    x=1700
    y=1900
    z=400
  }
  ; Collisions; amount of bouncing back
  restitution_coeff=0.1
  ; Collision box
  width=1.638
  height=1
  length=4.343
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
  }
 model_incar
 {
 file=body.dof
 }
  model_braking_l
  {
    file=brl.dof
  }
}
steer
{
   x=0.3
   y=0.14
   z=0.56
	radius=10
	xa=19
   lock=320
	model
	{
	file=vl.dof
	}
}
engine
{
  mass=70
  max_rpm=5250
  idle_rpm=800
  autoclutch_rpm=1200
  curve_torque=torque.crv
  max_torque=77
  starter=1
  start_stalled=1
  stall_rpm=350
  start_rpm=800
  starter_torque=50
  shifting
  {
    automatic=0
    shift_up_rpm=3200
    shift_down_rpm=2000
    time_to_declutch=100
    time_to_clutch=100
  }
  inertia
  {
    engine=0.1
    final_drive=0.12
  }
  braking_coeff=1.1
  friction=0
  torque_reaction=0.3
  sample=engine.wav
  sample_rpm=5000
}
gearbox
{
  gears=5
  gear0
  {
    ratio=-3.07
    inertia=0.3
  }
  gear1
  {
    ratio=3.61
    inertia=0.08
  }
  gear2
  {
    ratio=2.26
    inertia=0.06
  }
  gear3
  {
    ratio=1.48
    inertia=0.03
  }
  gear4
  {
    ratio=1.03
    inertia=0.01
  }
}
clutch
{
  max_torque=135
}
handbrake
{
  wheels=23
}
differential
{
  type=0
  ratio=3.78
  output0=0
  output1=1
}
aero
{
  body
  {
    ; Application center relative to the CG
    center=0 0 0
    ; Longitudinal drag coefficient (Cx, X-axis is SAE's car longitudinal)
    cx=0.35
    ; Frontal area in m^2
    area=1.3
  }
}
antirollbar
{
  count=0
  }
  arb0
  {
    susp_left=0
    susp_right=1
    k=0000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=0000
  }
}
susp_front
{
  y=0.0
  z=1.288
  restlen=.535
  minlen=.315
  maxlen=.65
  k=16138
  bump_rate=4000
  rebound_rate=4200
  roll_center
  {
    x=0
    y=-.55
    z=0
  }
 
}
susp_rear
{
  y=0.0
  z=-1.153
  restlen=.535
  minlen=.35
  maxlen=.64
  k=12884
  bump_rate=4000
  rebound_rate=4200
  roll_center
  {
    x=0
    y=-.55
    z=0
  }
}
susp0~susp_front
{
  x=0.66
}
susp1~susp_front
{
  x=-0.66
}
susp2~susp_rear
{
  x=0.66
}
susp3~susp_rear
{
  x=-0.66
}
tire_model
{
  relaxation_length_lat=0.98
  relaxation_length_long=.091
  damping_speed=0.15
  damping_coefficient_lat=0.75
  damping_coefficient_long=1
}
pacejka
{
  ; Pacejka constants for all tires
  ; Lateral force
  a0=1.3
a1=-40
a2=1150
a3=1632
a4=11
a5=0.006
a6=-0.04
a7=-0.4
a8=0.003
a9=-0.002
a10=0.16
a111=-11
a112=0.045
a12=0.17
a13=-23.5
b0=1.57
b1=-48
b2=1130
b3=6.8
b4=444
b5=0.3
b6=0.0034
b7=-0.008
b8=0.66
b9=0
b10=0
b11=0
b12=0
c0=2.46
c1=-2.77
c2=-2.9
c3=-0
c4=-3.6
c5=-0.1
c6=0.0004
c7=0.22
c8=-2.31
c9=3.87
c10=0.0007
c11=-0.05
c12=-0.006
c13=0.33
c14=-0.04
c15=-0.4
c16=0.092
c17=0.0114
optimal_slipratio=0.18
optimal_slipangle=0.1733
}
skidding_default
{
  long_start=0.1
  long_max=1.0
  long_start_n=0.1
  long_max_n=1.0
  lat_start=0.1
  lat_max=1.0
}
wheel_front
{
  y=0
  z=0
  steering=1
  lock=50
  mass=15
  inertia=2.3
  radius=.27
  rolling_coeff=0.015
  max_braking=800
  braking_factor=1
  friction_road=1.7
  tire_rate=190000
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  mass=17
  inertia=2.3
  radius=.27
  rolling_coeff=0.015
  friction_road=1.7
  tire_rate=170000
  max_braking=500
  braking_factor=1
  max_handbrake_torque=400
  skidding~skidding_default
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=1.0
  toe=0.5
  model
  {
    file=hl.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel1~wheel_front
{
  x=0
  camber=1.0
  toe=-0.5
  model
  {
    file=hr.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
wheel2~wheel_rear
{
  x=0
  camber=0
  toe=0
  model
  {
    file=hl.dof
  }
  ;model_brake
  ;{
    ;file=bl.dof
  ;}
}
wheel3~wheel_rear
{
  x=0
  camber=0
  toe=0
  model
  {
    file=hr.dof
  }
  ;model_brake
  ;{
    ;file=br.dof
  ;}
}
;

; Cameras
; Type of model to use; 0=outside, 1=inside, 2=none
;
camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=0
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  ; Source/target inertia
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera1
{
  offset
  {
    x=0
    y=-0.454165
    z=-4.649996
  }
  angle
  {
    x=11.000005
    y=-180.000000
    z=0.000000
  }
  name=Chase High
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
}
camera2
{
  offset
  {
    x=0
    y=-0.4
    z=2.100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=60
  model=2
  wheels=0
  view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.862501
    z=0.235000
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Rear Side
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.121874
    y=-0.064583
    z=-5.590004
  }
  angle
  {
    x=35.555546
    y=-83.159645
    z=16.579861
  }
  name=Side High
  fov=40
  model=0
  wheels=1
  view=0
}
camera6
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.231250
    y=-0.050001
    z=-4.834995
  }
  angle
  {
    x=7.361108
    y=27.083181
    z=18.923620
  }
  fov=30
  model=0
  wheels=1
  view=0
  name=Front Side
}
camera7
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.001563
    y=-0.179167
    z=-9.000000
  }
  angle
  {
    x=44.000000
    y=0.000000
    z=0.000000
  }
  fov=26
  model=0
  wheels=1
  view=0
  name=Front High
}

camera8
{
  follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=-0.3
      y=-0.45
      z=-0.1
   }
   angle
   {
      x=0.000000
      y=183.0000
      z=0.000000
   }
   fov=70
   ;Type of model to use; 0=outside, 1=inside, 2=none
   model=1
   wheels=0
   view=1
   name=Inside pssngr
  }
}
camera9
{
   follow
   {
      pitch=1
      yaw=1
      roll=1
   }
   offset
   {
      x=0.3
      y=-0.45
      z=-0.1
   }
   angle
   {
      x=7.499987
      y=183.0000
      z=0.000000
   }
   fov=80
   ;Type of model to use; 0=outside, 1=inside, 2=none
   model=1
   wheels=0
   view=1
   name=Inside Driver
}
