car
{
  name=Citroên XM 3.0i V6 Automatic
  year=1989
  credits=Krazymond, 4th Floor
  comments=2975cc V6 12V 172 PS
  id=xm
  version=052b61
  wheels=4
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.97
    length=4.46
  }
  cg
  {
    x=0
    y=-0.25
    z=0.18
  }
}
body
{
  ; Weight of the car's body (kg) - This excludes wheels, engine, fuel and driver
  mass=1400
  inertia
  {
    x=2250
    y=2500
    z=550
  }
  restitution_coeff=0.1
  width=1.750
  height=1.285
  length=4.535
  manual_box=1
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=incar.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  ; model_light_l
  ; {
  ; }
  ; model_light_r
  ; {
  ; }
}
steer
{
  ; Position (stub gfx)
  x=0.37
  y=0.09
  z=0.65
  ; Graphical representation
  radius=10
  ; Rotation towards the driver
  xa=0
  ; Max angle of rotation (angle = -lock/2..lock/2)
  lock=240
  model
  {
    file=swheel.dof
  }
}
engine
{
  x=0
  y=0
  z=0
  size=0
  mass=150
  max_rpm=6100
  idle_rpm=850
  stall_rpm=400
  start_rpm=900
  autoclutch_rpm=1250
  starter_torque=100
  curve_torque=torque.crv
  max_torque=240
  start_stalled=1
  shifting
  {
    automatic=1
    shift_up_rpm=4500
    shift_down_rpm=2000
    time_to_declutch=190
    time_to_clutch=50
  }
  inertia
  {
    engine=0.25
    final_drive=0.1
  }
  braking_coeff=2.6
  rolling_friction_coeff=0.6
   sample=engine.wav
   sample_rpm=12000
}
gearbox
{
  gears=5
  gear0
  {
    inertia=0.2
    ratio=-2.32
  }
  gear1
  {
    ratio=2.32
    inertia=0.9
  }
  gear2
  {
    ratio=1.26
    inertia=0.4
  }
  gear3
  {
    ratio=0.89
    inertia=0.1
  }
  gear4
  {
    ratio=0.67
    inertia=0.04
  }
}
differential
{
  type=1
  locking_coeff=200
  ratio=4.28
  output0=0
  output1=1
}
clutch
{
  max_torque=1000
}
handbrakes
{
  wheels=23
}
aero
{
  body
  {
    center=0 0 0
    cx=0.32
    area=2
  }
  wings=1
  wing0
  {
    name=lift
    span=1
    cord=1
    coeff_drag=0.0
    coeff_down=-0.1
    center=0 0 0
    angle=0
    angle_offset=10
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=30000
  }
}
susp_front
{
  y=0
  z=1.34
  restlen=0.53
  minlen=0.28
  maxlen=0.75
  k=29100
  bump_rate=6000
  rebound_rate=5500
  roll_center
  {
    x=0
    y=-0.6
    z=0
  }
}
susp_rear
{
  y=0
  z=-1.55
  restlen=0.50
  minlen=0.28
  maxlen=0.75
  k=24500
  bump_rate=5500
  rebound_rate=5000
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
{
  x=0.70
}
susp1~susp_front
{
  x=-0.70
}
susp2~susp_rear
{
  x=0.70
}
susp3~susp_rear
{
  x=-0.70
}
tire_model_front
{
  damping_predict_lat=0.45
  damping_predict_long=0.025
}
tire_model_rear
{
  damping_predict_lat=0.50
  damping_predict_long=0.03
}
pacejka
{
  a0=1.4
  a1=-35
  a2=1400
  a3=2400
  a4=6.5
  a5=0.014
  a6=-0.24
  a7=1.0
  a8=-0.03
  a9=-0.0013
  a10=-0.15
  a111=-8.5
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.6
  b1=-70
  b2=1500
  b3=23.3
  b4=350
  b5=0.05
  b6=0
  b7=0.055
  b8=-0.024
  b9=0.014
  ; b10=0.26
  b10=0 ; 0'ed, still get Qlog error, though not with same force reported
  b11=0 ; missing in original setup, correct setting?
  b12=0
  c0=2.2
  c1=-3.9
  c2=-3.9
  c3=-1.26
  c4=-8.2
  c5=0.025
  c6=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.1
  optimal_slipangle=0.15
}
wheel_front
{
  steering=1
  lock=55
  mass=20
  inertia=1.2
  radius=0.32
  width=0.25
  tire_rate=275000
  max_braking=1950
  braking_factor=1
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=20
  inertia=1.1
  radius=0.32
  width=0.25
  max_braking=450
  braking_factor=1
  max_handbrake_torque=2000
  tire_rate=265000
  pacejka~pacejka
  {
    optimal_slipratio=0.1
    optimal_slipangle=0.16
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2
  toe=0.1
  camber=-0.5
  model
  {
    file=tire_l.dof
  }
  ;  model_brake
  ;  {
  ;    file=caliper_lf.dof
  ;  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2
  toe=-0.1
  camber=-0.5
  model
  {
    file=tire_r.dof
  }
  ;  model_brake
  ;  {
  ;    file=caliper_rf.dof
  ;  }
}
wheel2~wheel_rear
{
  x=0
  camber=-0.25
  toe=-1
  model
  {
    file=tire_l.dof
  }
  ;  model_brake
  ;  {
  ;    file=caliper_lr.dof
  ;  }
}
wheel3~wheel_rear
{
  x=0
  camber=-0.25
  toe=1
  model
  {
    file=tire_r.dof
  }
  ;  model_brake
  ;  {
  ;    file=caliper_rr.dof
  ;  }
}
camera0
{
  offset
  {
    x=0.0
    y=1.8
    z=-3.0
  }
  angle
  {
    x=15.000000
    y=180.000000
  }
  name=Behind
  fov=75
  src
  {
    mass=6
    k=300
    damping=90
    maxdist=2
  }
  dst
  {
    mass=1
    k=200
    damping=70
    maxdist=1
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera1
{
  offset
  {
    x=0.081250
    y=-0.837501
    z=-4.245005
  }
  angle
  {
    x=6.666651
    y=-180.729126
    z=0.000000
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=65
}
camera2
{
  offset
  {
    x=-0.092187
    y=-0.658335
    z=1.310000
  }
  angle
  {
    x=5.555551
    y=178.819412
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=70
}
camera3
{
  follow
  {
    pitch=
    yaw=1
    roll=
  }
  offset
  {
    x=-0.048435
    y=-1.116667
    z=0.445000
  }
  angle
  {
    x=15.138884
    y=-3.992913
    z=2.430566
  }
  name=Wheels
  fov=65
}
camera4
{
  offset
  {
    x=-0.381252
    y=0.439585
    z=-4.794994
  }
  angle
  {
    x=16.527767
    y=129.166580
    z=0.260415
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.084376
    y=-0.516667
    z=-0.169993
  }
  angle
  {
    x=-16.111244
    y=13.541492
    z=1.736108
  }
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=1
  wheels=0
  view=2
  name=inside
  fov=60
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.273437
    y=0.739583
    z=-3.650010
  }
  angle
  {
    x=23.194437
    y=-357.986633
    z=19.357632
  }
  fov=70
}
camera7
{
  offset
  {
    x=1.390623
    y=0.062498
    z=-0.599992
  }
  angle
  {
    x=-2.222249
    y=-161.632263
    z=3.298599
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=70
}
camera8
{
  offset
  {
    x=0.634371
    y=0.483333
    z=-6.925018
  }
  angle
  {
    x=79.305206
    y=310.416595
    z=-6.944464
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
}
camera9
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.4
    y=-0.41
    z=0.05
  }
  angle
  {
    x=3
    y=-180
    z=0.0
  }
  model=1
  wheels=0
  name=DriversSeat
  fov=65
}
