#Moving Object definition file for Ultimate Stunts
#This file describes the Porsche 911 car

#All values are in SI units

[description]
fullname = Porsche 911



[body]

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

#body mass in kg
mass = 1450.0

#Center of mass relative to the body origin in m
centerofmass = 0,-0.09,0.0

#size (defines the moments of inertia) in m
size = 1.8, 1.25, 4

#Camera position relative to CM
camerapos = 0, 0.85, 1.28

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

#Rotation damping constant
rotationdamping = 100.0




[frontwheels]

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

#static friction coefficient
mu = 1.7

#roll friction coefficient
roll = 0.01

#wheel mass in kg
mass = 50.0

#position relative to body origin in m
position = 0.55, 0.09, -1.28

#spring constant 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 = 5
cornerstiffness = 100

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

#max steering angle in rad
steermax = 0.2

#Fraction of traction torque supplied
traction = 0.5

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



[rearwheels]

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

#static friction coefficient
mu = 1.7

#roll friction coefficient
roll = 0.01

#wheel mass in kg
mass = 50.0

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

#spring constant 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 = 5
cornerstiffness = 100

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

#max steering angle in rad
steermax = 0.0

#Fraction of traction torque supplied
traction = 0.5

#Aerodynamic downforce coefficient
#F = coeficient * v^2
downforce = -0.05



[engine]

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

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

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

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

#Gear ratios
gear0 = -3.0
gear1 = 3.34
gear2 = 2.39
gear3 = 1.71
gear4 = 1.22
gear5 = 0.87
gear6 = 0

#The differential ratio
differentialratio = 3.95

[sound]
engine = cars/generic/engine.wav

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

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

[dashboard]
#The dashboard background texture and its height
#The height is a fraction of the width
background_tex = cars/porsche911/dashboard.png
background_hth = 0.33

crash_tex = cars/generic/crash.png

#The steer texture, position, radius and its maximum angle (degrees)
steer_tex = cars/porsche911/steer.png
steer_pos = 0.41,-0.0115
steer_rad = 0.36
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/porsche911/vel.png
analog_vel_pos = 0.3,0.17
analog_vel_rad = 0.07
analog_vel_an0 = -140
analog_vel_an1 = 0
analog_vel_max = 69.4

#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/porsche911/rpm.png
analog_rpm_pos = 0.42,0.18
analog_rpm_rad = 0.085
analog_rpm_an0 = -115
analog_rpm_an1 = 95
analog_rpm_max = 942

[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


