Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suspension subclassing; CARSUSPENSIONINFO struct.
11-20-2010, 01:08 AM,
#9
Patch for LE data.
I don't seem to be able to add attachments, so here goes:
Code:
Index: vdrift-data/cars/LE/LE.car
===================================================================
--- vdrift-data/cars/LE/LE.car    (revision 725)
+++ vdrift-data/cars/LE/LE.car    (working copy)
@@ -1,36 +1,34 @@
include ../../carparts/touring

[engine]
-position = 0.0, -0.9, -0.20
+position = 0.0, -0.75, -0.20
mass = 120.0
-max-power = 1.79e5
-peak-engine-rpm = 7800.0
-rpm-limit = 9000.0
+max-power = 1.04e5
+peak-engine-rpm = 6400.0
+rpm-limit = 7200.0
inertia = 0.1
idle = 0.02
start-rpm = 1000
stall-rpm = 350
fuel-consumption = 1e-9
torque-friction = 0.0003
-torque-curve-00 =  500, 55.0
-torque-curve-01 = 1000, 60.0
-torque-curve-02 = 2000, 70.0
-torque-curve-03 = 3000, 80.0
-torque-curve-04 = 4000, 90.0
-torque-curve-05 = 4500, 97.0
-torque-curve-06 = 5000, 111.0
-torque-curve-07 = 5500, 145.0
-torque-curve-08 = 6000, 170.0
-torque-curve-09 = 6250, 148.0
-torque-curve-10 = 6500, 160.0
-torque-curve-11 = 6800, 181.0
-torque-curve-12 = 7000, 179.0
-torque-curve-13 = 7500, 174.0
-torque-curve-14 = 7800, 173.0
-torque-curve-15 = 8000, 171.0
-torque-curve-16 = 8200, 169.0
-torque-curve-17 = 8600, 146.0
-torque-curve-18 = 9000, 137.0
+torque-curve-00 = 1000, 142.18
+torque-curve-01 = 1400, 149.78
+torque-curve-02 = 1800, 154.98
+torque-curve-03 = 2200, 159.12
+torque-curve-04 = 2600, 164.85
+torque-curve-05 = 3000, 168.24
+torque-curve-06 = 3400, 169.93
+torque-curve-07 = 3800, 170.52
+torque-curve-08 = 4200, 170.6
+torque-curve-09 = 4600, 170.54
+torque-curve-10 = 5000, 170.05
+torque-curve-11 = 5400, 168.51
+torque-curve-12 = 5800, 165.21
+torque-curve-13 = 6200, 159.34
+torque-curve-14 = 6600, 150.05
+torque-curve-15 = 7000, 136.42
+torque-curve-16 = 7400, 117.5

[clutch]
sliding = 0.27
@@ -40,7 +38,7 @@

[transmission]
gears = 5
-gear-ratio-r = -2.8
+gear-ratio-r = -2.98
gear-ratio-1 = 3.167
gear-ratio-2 = 1.842
gear-ratio-3 = 1.307
@@ -49,7 +47,7 @@
shift-delay = 0.08

[differential-rear]
-final-drive = 4.100
+final-drive = 3.94
anti-slip = 600.0

[fuel-tank]
@@ -65,7 +63,7 @@
[wing.front]
position = 0.0, 0.0, 0.2
frontal-area = 2
-drag-coefficient = 0.3
+drag-coefficient = 0.1

[wing.center]
position = 1.9, 0.0, 0.60
@@ -175,32 +173,64 @@

[wheel.fl.tire]
texture = touring.png
-size = 195,50,16
+size = 185,55,15
type = tire-touring

[wheel.fr.tire]
texture = touring.png
-size = 195,50,16
+size = 185,55,15
type = tire-touring

[wheel.rl.tire]
texture = touring.png
-size = 225,45,17
+size = 205,50,16
type = tire-touring

[wheel.rr.tire]
texture = touring.png
-size = 225,45,17
+size = 205,50,16
type = tire-touring

+[wheel.fl.wishbones]
+upper-chassis-rear = -0.39, 1.09, -0.330
+upper-chassis-front = -0.39, 1.20, -0.330
+upper-hub = -0.68, 1.108, -0.370
+lower-chassis-rear = -0.34, 0.988, -0.570
+lower-chassis-front = -0.34, 1.228, -0.570
+lower-hub = -0.69, 1.108 -0.60
+
+[wheel.fr.wishbones]
+upper-chassis-rear = 0.39, 1.09, -0.330
+upper-chassis-front = 0.39, 1.20, -0.330
+upper-hub = 0.68, 1.108, -0.370
+lower-chassis-rear = 0.34, 0.988, -0.570
+lower-chassis-front = 0.34, 1.228, -0.570
+lower-hub = 0.69, 1.108 -0.6
+
+[wheel.rl.wishbones]
+upper-chassis-rear = -0.47, -1.083, -0.34
+upper-chassis-front = -0.47, -1.283, -0.34
+upper-hub = -0.70, -1.183, -0.38
+lower-chassis-rear = -0.39, -1.383, -0.58
+lower-chassis-front = -0.39, -0.983, -0.58
+lower-hub = -0.72, -1.183 -0.61
+
+[wheel.rr.wishbones]
+upper-chassis-rear = 0.47, -1.083, -0.34
+upper-chassis-front = 0.47, -1.283, -0.34
+upper-hub = 0.70, -1.183, -0.38
+lower-chassis-rear = 0.39, -1.383, -0.55
+lower-chassis-front = 0.39, -0.983, -0.55
+lower-hub = 0.72, -1.183 -0.61
+
[wheel.fl]
texture = oem_wheel.png, oem_wheel-misc1.png
mesh = oem_wheel.joe
position = -0.706, 1.108, -0.460
-hinge = 0,0,0
-camber = -1.33
+suspension = double-wishbone
+camber = -0.1
caster = 6.12
-toe = 0.0
+toe = 0
ackermann = 8.56    # 50% ackermann
steering = 30

@@ -209,10 +239,10 @@
mesh = oem_wheel.joe
scale = -1,1,1
position = 0.706, 1.108, -0.460
-hinge = 0,0,0
-camber = 1.33
+suspension = double-wishbone
+camber = 0.1
caster = 6.12
-toe = 0.0
+toe = 0
ackermann = -8.56
steering = 30

@@ -220,8 +250,8 @@
texture = oem_wheel.png, oem_wheel-misc1.png
mesh = oem_wheel.joe
position = -0.730, -1.183, -0.480
-hinge = 0,-0.85,0
-camber = -0.45
+suspension = double-wishbone
+camber = -1.8
caster = 0.28
toe = 0.0

@@ -230,8 +260,8 @@
mesh = oem_wheel.joe
scale = -1,1,1
position = 0.730, -1.183, -0.480
-hinge = 0,-0.85,0
-camber = 0.45
+suspension = double-wishbone
+camber = 1.8
caster = 0.28
toe = 0.0

@@ -265,16 +295,16 @@

[particle-02]
mass = 116.0
-position = -0.39, -1.7, 0.0
+position = -0.39, -1.7, -0.23

[particle-03]
mass = 116.0
-position = 0.39, -1.7, 0.0
+position = 0.39, -1.7, -0.23

[particle-04]
mass = 166.0
-position = -0.39, 1.32, -0.2
+position = -0.39, 1.32, -0.43

[particle-05]
mass = 166.0
-position = 0.39, 1.32, -0.2
+position = 0.39, 1.32, -0.43

I made a few additional alterations to the data, mostly the torque curve — I don't know what the data in there was supposed to be for, but I replaced it with some 'clean' data extrapolated from graph data for the Toyota 1ZZ-FE powertrain as paired with the 5-speed gearbox. It now accelerates from 0-100 in ~5 seconds as it's supposed to.
I moved the particles down because the centre of mass was ridiculously high and causing the car to prefer tipping over to cornering. I moved the engine forwards to try and unbalance the back end while cornering – also the -0.9 basically had it hanging almost over the rear axle a la a Beetle with a Porsche 6cyl engine forcibly inserted throught the luggage space.
Reply


Messages In This Thread
[No subject] - by NaN - 11-18-2010, 11:04 AM
[No subject] - by fudje - 11-18-2010, 07:11 PM
[No subject] - by fudje - 11-18-2010, 08:02 PM
[No subject] - by fudje - 11-19-2010, 12:39 AM
[No subject] - by NaN - 11-19-2010, 01:13 PM
[No subject] - by NaN - 11-19-2010, 02:28 PM
[No subject] - by fudje - 11-19-2010, 04:20 PM
Patch for LE data. - by fudje - 11-20-2010, 01:08 AM
[No subject] - by fudje - 11-20-2010, 01:55 AM
[No subject] - by fudje - 11-20-2010, 04:19 AM
[No subject] - by NaN - 11-20-2010, 07:41 AM
[No subject] - by fudje - 11-20-2010, 03:41 PM
[No subject] - by fudje - 11-21-2010, 04:46 AM
[No subject] - by NaN - 11-21-2010, 07:32 AM
[No subject] - by NaN - 11-21-2010, 07:36 AM
[No subject] - by fudje - 11-21-2010, 11:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-21-2010, 02:20 PM
[No subject] - by fudje - 11-21-2010, 09:02 PM
[No subject] - by fudje - 11-22-2010, 07:51 PM
[No subject] - by fudje - 11-26-2010, 01:24 AM
[No subject] - by NaN - 11-26-2010, 07:53 PM
More stuff - by fudje - 12-01-2010, 06:08 AM
[No subject] - by NaN - 12-01-2010, 12:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)