#Moving Object definition file for Ultimate Stunts
#This file describes the Ferrari Spider car

#All values are in SI units

[description]
fullname = Ferrari Spider



[body]

#Geometry definition file
geometry = cars/ferrarispider/body.glb

#body mass in kg
mass = 1350

#size (defines the moments of inertia) in m
size = 2.0, 1.2, 4.0

#Center of mass position
centerofmass = 0.0, 0.0, 0.0

#Camera position relative to CM
camerapos = 0.0, 0.8, 0.09

#Air resistance cw times front area
#according to formula F = cwA * v^2
cwa = 0.56

#Rotation damping constant
rotationdamping = 100.0




[frontwheels]

#Geometry definition file
geometry = cars/ferrarispider/wheel.glb

#static friction coefficient
mu = 1.7

#roll friction coefficient
roll = 0.01

#wheel mass in kg
mass = 100.0

#position relative to body origin in m
position = 0.76, 0.09, -1.7

#constants for the suspension
suspk = 100000.0
suspd = 20000.0

#Normalised stiffness of the tyre
#The longitudinal and lateral velocities
# of the tyre surfaceare multiplied with
# these values before they are used in
# the tyre force curve
tractionstiffness = 25
cornerstiffness = 250

#The maximum brake torque in Nm
#At low velocities the brake force depends
#on the axis' angular velocity
brakemax = 1500.0

#max steering angle in rad
steermax = 0.24

#Fraction of traction torque supplied
traction = 0.0

#Aerodynamic downforce coefficient
#F = coeficient * v^2
downforce = 0.09


[rearwheels]

#Geometry definition file
geometry = cars/ferrarispider/wheel.glb

#static friction coefficient
mu = 1.67

#roll friction coefficient
roll = 0.01

#wheel mass in kg
mass = 100.0

#position relative to body origin in m
position = 0.76, 0.09, 0.98

#constants for the suspension
suspk = 100000.0
suspd = 20000.0

#Normalised stiffness of the tyre
#The longitudinal and lateral velocities
# of the tyre surfaceare multiplied with
# these values before they are used in
# the tyre force curve
tractionstiffness = 25
cornerstiffness = 250

#The maximum brake torque in Nm
#At low velocities the brake force depends
#on the axis' angular velocity
brakemax = 1200.0

#max steering angle in rad
steermax = 0.0

#Fraction of traction torque supplied
traction = 1.0

#Aerodynamic downforce coefficient
#F = coeficient * v^2
downforce = 0.09



[engine]

#Torque in Nm of a non-rotating engine (@ 0 RPM)
zerotorque = 350

#Max torque point. Torque in Nm, engine speed in rad/s
maxtorque = 373
w_maxtorque = 498

#Max power point. Power in W, engine speed in rad/s
maxpower = 298000
w_maxpower = 890

#Engine speed in rad/s where the engine doesn't generate torque anymore
w_zero = 950



#Gear ratios
gear0 = -2.12
gear1 = 3.29
gear2 = 2.16
gear3 = 1.27
gear4 = 1.03
gear5 = 0.85
gear6 = 0

#The differential ratio
differentialratio = 4.44

[sound]
#Engine sound
engine = cars/generic/engine2.wav

#Base engine rad/s of the sound sample
enginerps = 776

[skin]
texture = cars/generic/license.jpg
defaultcolor = 1,0,0

[dashboard]

#The dashboard background texture and its height
#The height is a fraction of the width
background_tex = cars/ferrarispider/dashboard.png
background_hth = 0.4

crash_background_tex = cars/ferrarispider/dashboard_crashed.png
crash_tex = cars/generic/crash.png

#The steer texture, position, radius and its maximum angle (degrees)
steer_tex = cars/ferrarispider/steer.png
steer_pos = 0.5,0.05
steer_rad = 0.35
steer_ang = 100.0

#An analog velocity gauge. texture, position, radius, and gauge settings.
#an0,an1 = min. + max. angle of the needle
#max = velocity (m/s) where the maximum angle is reached
analog_vel_tex = cars/generic/vel.png
analog_vel_pos = 0.41,0.25
analog_vel_rad = 0.08
analog_vel_an0 = -160
analog_vel_an1 = 160
analog_vel_max = 85

#An analog RPM gauge. texture, position, radius, and gauge settings.
#an0,an1 = min. + max. angle of the needle
#max = engine speed (rad/s) where the maximum angle is reached
analog_rpm_tex = cars/ferrarispider/rpm.png
analog_rpm_pos = 0.59,0.25
analog_rpm_rad = 0.08
analog_rpm_an0 = -160
analog_rpm_an1 = 160
analog_rpm_max = 950

#Various digital gauges
#These are not yet implemented.
digital_vel_pos = 0.5,0.5
digital_vel_hth = 0.2
digital_vel_wth = 0.4

digital_rpm_pos = 0.5,0.5
digital_rpm_hth = 0.2
digital_rpm_wth = 0.4

songtitle_pos = 0.5,0.6
songtitle_hth = 0.2
songtitle_wth = 0.4

[controls]

#Steering speed (fraction/s) when steering away from neutral
steerspeed_out = 0.5

#Steering speed (fraction/s) when steering towards neutral
steerspeed_in  = 2.5

#Dependency of steering speed on car speed
#formula: dsdt = {steerspeed_in | steerspeed_out} / (1.0 + steerspeed_v_factor * |v|)
steerspeed_v_factor = 0.01


