; Model originally released by Rwolf
;
; Ueo 2004 mod by FSR
;
car
{
  name=Toyota Corolla GTS - Ueo 2004
  id=87Corolla_ueo04
  version=050f
  credits=Model by Ravage Wolf
  comments=Mod by FSR
  year=1987
  wheels=4
  skid
  {
    sample=skid.wav
  }
  ;shadow
  ;{
  ;  texture=shadow.tga
  ;  width=2
  ;  length=4.4
  ;}
  cg
  {
    x=0
    y=-0.3
    z=0.3
  }
  shadow
  {
    texture=
    length=0
    width=0
    offset=0
  }
}
body
{
  mass=780
  restitution_coeff=0.25
  inertia
  {
    x=1400
    y=1600
    z=400
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_braking_l
  {
    file=brakelight.dof
  }
  width=0
  height=0
  length=0
  manual_box=0
  model_light_l
  {
    file=
  }
  cockpit_start=1
  cockpit_length=1
}
steer
{
  x=0.35
  y=0.028
  z=0.28
  radius=10
  xa=17.190001
  lock=200
  model
  {
    file=stwheel.dof
  }
}
engine
{
  mass=0
  max_rpm=9000
  idle_rpm=800
  stall_rpm=300
  start_rpm=600
  autoclutch_rpm=2500
  starter=1
  starter_torque=50
  curve_torque=torque.crv
  max_torque=157
  reaction=1
  shifting
  {
    automatic=0
    shift_up_rpm=6000
    shift_down_rpm=4000
    time_to_declutch=250
    time_to_clutch=120
  }
  inertia
  {
    engine=0.2
    final_drive=0.12
  }
  braking_coeff=1.15
  rolling_friction_coeff=0.5
  sample=engine.wav
  sample_rpm=13500
  start_stalled=0
}
gearbox
{
   gears=6
   gear0
   {
      ratio=-3.484
      inertia=0.16
   }
   gear1
   {
      ratio=3.587
      inertia=0.06
   }
   gear2
   {
      ratio=2.022
      inertia=0.03
   }
   gear3
   {
      ratio=1.384
      inertia=0
   }
   gear4
   {
      ratio=1.000
      inertia=0
   }
   gear5
   {
      ratio=0.861
      inertia=0
   }
}
clutch
{
   max_torque=250
}
handbrakes
{
   wheels=23
}
differential
{
   type=1
   ratio=4.30
   locking_coeff=75
   locking_coefficient=75
   clutches=0
   clutch_factor=0
   power_angle=0
   coast_angle=0
   output0=2
   output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.38
    area=1.7
  }
   wing1
   {
      name=Rear Wing
      span=1
      cord=1
      angle=0
      angle_offset=1
      coeff_drag=1
      coeff_down=10
      center=0.000 0.000 -1.10
   }
}
antirollbar
{
   count=2
   arb0
   {
      susp_left=0
      susp_right=1
      k=15000
   }
   arb1
   {
      susp_left=2
      susp_right=3
      k=12000
   }
}
susp_front
{
  y=-0.080
  z=1.24
  restlen=0.38
  minlen=0.2
  maxlen=0.40
  k=55000
  bump_rate=8600
  rebound_rate=9200
  roll_center
  {
    x=0
    y=-0.7
    z=0
  }
}
susp_rear
{
  y=-0.060
  z=-1.16
  restlen=0.38
  minlen=0.2
  maxlen=0.42
  k=75000
  bump_rate=8000
  rebound_rate=8800
  roll_center
  {
    x=0
    y=-0.60
    z=0
  }
}
susp0~susp_front
{
  x=0.760
}
susp1~susp_front
{
  x=-0.760
}
susp2~susp_rear
{
  x=0.760
}
susp3~susp_rear
{
  x=-0.760
}
tire_model
{
  damping_predict_lat=0.550
  damping_predict_long=0.020
}
pacejka_front
{
    ; Lateral force
    a0=1.2
    a1=-46
    a2=1325
    a3=1475
    a4=11
    a5=0.013
    a6=-0.14
    a7=0.14
    a8=0.019
    a9=-0.019
    a10=-0.18
    a111=-11
    a112=-0.021
    a12=0.48
    a13=10.2
    a13=-2.4
    ; Longitudinal force
    b0=1.2
    b1=-90.00000
    b2=1445.00000
    b3=23.30000
    b4=400.00000
    b5=0.00000
    b6=0.00680
    b7=0.05500
    b8=-0.02400
    b9=0.01400
    b10=0.26000
    b11=-86
    b12=350
    ; Aligning moment
    c0=2.10000
    c1=-3.90000
    c2=-3.90000
    c3=-1.26000
    c4=-8.20000
    c5=0.02500
    c6=0.00000
    c7=0.04400
    c8=-0.58000
    c9=0.18000
    c10=0.04300
    c11=0.04800
    c12=-0.00350
    c13=-0.18000
    c14=0.14000
    c15=-1.02900
    c16=0.27000
    c17=-1.10000
    optimal_slipratio=0.18276
    optimal_slipangle=0.21185
}
pacejka_rear
{
    ; Lateral force
    a0=1.2
    a1=-46
    a2=1345
    a3=1495
    a4=11
    a5=0.013
    a6=-0.14
    a7=0.14
    a8=0.019
    a9=-0.019
    a10=-0.18
    a111=-11
    a112=-0.021
    a12=0.48
    a13=10.2
    a13=-2.4
    ; Longitudinal force
    b0=1.2
    b1=-90.00000
    b2=1445.00000
    b3=23.30000
    b4=400.00000
    b5=0.00000
    b6=0.00680
    b7=0.05500
    b8=-0.02400
    b9=0.01400
    b10=0.26000
    b11=-86
    b12=350
    ; Aligning moment
    c0=2.10000
    c1=-3.90000
    c2=-3.90000
    c3=-1.26000
    c4=-8.20000
    c5=0.02500
    c6=0.00000
    c7=0.04400
    c8=-0.58000
    c9=0.18000
    c10=0.04300
    c11=0.04800
    c12=-0.00350
    c13=-0.18000
    c14=0.14000
    c15=-1.02900
    c16=0.27000
    c17=-1.10000
    optimal_slipratio=0.18276
    optimal_slipangle=0.21185
}
wheel_front
{
  y=0
  z=0
  camber=-2.2
  steering=1
  powered=0
  lock=80
  inertia=0.7
  radius=.29
  rolling_coeff=0.015
  max_braking=1800
  braking_factor=0.6
  tire_rate=220000
  pacejka~pacejka_front
  {
  }
}
wheel_rear
{
  y=0
  z=0
  camber=0
  steering=0
  powered=1
  mass=7
  inertia=0.7
  radius=.29
  rolling_coeff=0.015
  max_braking=1800
  braking_factor=0.5
  tire_rate=240000
  pacejka~pacejka_rear
  {
  }
  max_handbrake_torque=1500
  {
  }
}
wheel0~wheel_front
{
  x=0
  toe=-0
  model
  {
    file=lf.dof
    scale 
    {
      x=0.75
      y=1
      z=1
    }
  }
  model_brake
  {
    file=
  }
  ackerman=1.1
  mass=7
  y=0
  z=0
  steering=1
}
wheel1~wheel_front
{
  x=0
  toe=0
  model
  {
    file=rf.dof
    scale 
    {
      x=0.75
      y=1
      z=1
    }
  }
  model_brake
  {
    file=
  }
  mass=7
  ackerman=-1.1
  y=0
  z=0
  steering=1
}
wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=lr.dof
    scale 
    {
      x=0.75
      y=1
      z=1
    }
  }
  model_brake
  {
    file=
  }
  y=0
  z=0
  steering=0
}
wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=rr.dof
    scale 
    {
      x=0.75
      y=1
      z=1
    }
  }
  model_brake
  {
    file=
  }
  y=0
  z=0
  steering=0
}
camera0
{
  offset
  {
    x=0.043750
    y=-0.170829
    z=-5.170018
  }
  angle
  {
    x=15.555530
    y=180.000046
    z=0.000000
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=45
}
camera1
{
  offset
  {
    x=0.0
    y=-0.50
    z=0.90
  }
  angle
  {
    x=6
    y=180.000000
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=75
  view=1
}
camera2
{
  offset
  {
    x=0.028125
    y=-0.327084
    z=-1.185000
  }
  angle
  {
    x=0
    y=180
    z=0.000000
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=65
  view=1
}
camera3
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.037503
    y=-0.129166
    z=-6.830026
  }
  angle
  {
    x=4.722209
    y=-19.097027
    z=-6.163182
  }
  name=Wheels
  fov=40
  view=1
}
camera4
{
  offset
  {
    x=0.217185
    y=-0.083332
    z=-4.600001
  }
  angle
  {
    x=3.749972
    y=827.256409
    z=-1.388890
  }
  view=1
  fov=50
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.048438
    y=-0.245834
    z=-5.370008
  }
  angle
  {
    x=27.083218
    y=-269.271179
    z=-0.086811
  }
  name=High
  fov=40
  view=1
}
camera6
{
  follow
  {
    pitch=1
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.364063
    y=-0.197916
    z=-4.010014
  }
  angle
  {
    x=15.000030
    y=-303.993134
    z=17.187500
  }
  fov=60
  view=1
}
camera7
{
  offset
  {
    x=-0.237502
    y=-0.150004
    z=-5.725006
  }
  angle
  {
    x=12.083304
    y=-157.639267
    z=-0.086816
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
  fov=35
  view=1
}
camera8
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.785935
    y=-0.262493
    z=-1.049996
  }
  angle
  {
    x=6.388885
    y=-358.645233
    z=0.000000
  }
  fov=55
  model=1
  wheels=0
  view=1
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.324563
    y=-0.309160
    z=-0.199996
  }
  angle
  {
    x=1.249992
    y=-178.958298
    z=0.000000
  }
  fov=65
  ; Type of model to use; 0=outside, 1=inside, 2=none
  model=1
  wheels=0
  view=1
  name=interior
}
