1#Moving Object definition file for Ultimate Stunts
2#This file describes the Subaru Impreza car
3
4#All values are in SI units
5
6[description]
7fullname = Subaru Impreza
8
9
10
11[body]
12
13#Geometry definition file
14geometry = cars/subaruimpreza/body.glb
15
16#body mass in kg
17mass = 1350
18
19#size (defines the moments of inertia) in m
20size = 2.0, 1.2, 4.0
21
22#Center of mass position
23centerofmass = 0.0,-0.3, 0.0
24
25#Camera position relative to CM
26camerapos = 0.0, 0.9, 0.1
27
28#Air resistance cw times front area
29#according to formula F = cwA * v^2
30cwa = 0.56
31
32#Rotation damping constant
33rotationdamping = 100.0
34
35
36
37
38[frontwheels]
39
40#Geometry definition file
41geometry = cars/subaruimpreza/wheel.glb
42
43#static friction coefficient
44mu = 1.7
45
46#roll friction coefficient
47roll = 0.001
48
49#wheel mass in kg
50mass = 100.0
51
52#position relative to body origin in m
53position = 0.7, -0.162, -1.31
54
55#constants for the suspension
56suspk = 100000.0
57suspd = 20000.0
58
59#Normalised stiffness of the tyre
60#The longitudinal and lateral velocities
61# of the tyre surfaceare multiplied with
62# these values before they are used in
63# the tyre force curve
64tractionstiffness = 25
65cornerstiffness = 250
66
67#The maximum brake torque in Nm
68#At low velocities the brake force depends
69#on the axis' angular velocity
70brakemax = 1500.0
71
72#max steering angle in rad
73steermax = 0.24
74
75#Fraction of traction torque supplied
76traction = 0.5
77
78#Aerodynamic downforce coefficient
79#F = coeficient * v^2
80downforce = 0.09
81
82
83[rearwheels]
84
85#Geometry definition file
86geometry = cars/subaruimpreza/wheel.glb
87
88#static friction coefficient
89mu = 1.7
90
91#roll friction coefficient
92roll = 0.001
93
94#wheel mass in kg
95mass = 100.0
96
97#position relative to body origin in m
98position = 0.7, -0.162, 1.2
99
100#constants for the suspension
101suspk = 100000.0
102suspd = 20000.0
103
104#Normalised stiffness of the tyre
105#The longitudinal and lateral velocities
106# of the tyre surfaceare multiplied with
107# these values before they are used in
108# the tyre force curve
109tractionstiffness = 25
110cornerstiffness = 250
111
112#The maximum brake torque in Nm
113#At low velocities the brake force depends
114#on the axis' angular velocity
115brakemax = 1200.0
116
117#max steering angle in rad
118steermax = 0.0
119
120#Fraction of traction torque supplied
121traction = 0.5
122
123#Aerodynamic downforce coefficient
124#F = coeficient * v^2
125downforce = 0.09
126
127
128
129[engine]
130
131#Torque in Nm of a non-rotating engine (@ 0 RPM)
132zerotorque = 320
133
134#Max torque point. Torque in Nm, engine speed in rad/s
135maxtorque = 343
136w_maxtorque = 419
137
138#Max power point. Power in W, engine speed in rad/s
139maxpower = 194600
140w_maxpower = 628
141
142#Engine speed in rad/s where the engine doesn't generate torque anymore
143w_zero = 700
144
145
146
147#Gear ratios
148gear0 = -3.0
149gear1 = 4.0
150gear2 = 2.89
151gear3 = 2.09
152gear4 = 1.51
153gear5 = 1.09
154gear6 = 0.79
155
156#The differential ratio
157differentialratio = 3.90
158
159[sound]
160engine = cars/generic/engine.wav
161
162#Base engine rad/s of the sound sample
163enginerps = 388
164
165[skin]
166texture = cars/generic/license.jpg
167defaultcolor = 0,0,1
168
169[dashboard]
170
171crash_tex = cars/generic/crash.png
172
173#An analog velocity gauge. texture, position, radius, and gauge settings.
174#an0,an1 = min. + max. angle of the needle
175#max = velocity (m/s) where the maximum angle is reached
176analog_vel_tex = cars/generic/vel.png
177analog_vel_pos = 0.1,0.1
178analog_vel_rad = 0.07
179analog_vel_an0 = -160
180analog_vel_an1 = 160
181analog_vel_max = 85
182
183#An analog RPM gauge. texture, position, radius, and gauge settings.
184#an0,an1 = min. + max. angle of the needle
185#max = engine speed (rad/s) where the maximum angle is reached
186analog_rpm_tex = cars/generic/rpm.png
187analog_rpm_pos = 0.9,0.1
188analog_rpm_rad = 0.07
189analog_rpm_an0 = -160
190analog_rpm_an1 = 160
191analog_rpm_max = 950
192
193[controls]
194
195#Steering speed (fraction/s) when steering away from neutral
196steerspeed_out = 0.25
197
198#Steering speed (fraction/s) when steering towards neutral
199steerspeed_in  = 2.5
200
201#Dependency of steering speed on car speed
202#formula: dsdt = {steerspeed_in | steerspeed_out} / (1.0 + steerspeed_v_factor * |v|)
203steerspeed_v_factor = 0.01
204
205
206