Skip to content

Commit 5a93866

Browse files
committed
Update
1 parent e95e496 commit 5a93866

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

data/cars/aston_martin_one77/aston_martin_one77.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "aston_martin_one77",
33
"mass": 1530,
44
"inertia": [2.0, 1.0, 4.8],
5-
"centerOfMass": [0.0, -0.3, 0.0],
5+
"centerOfMass": [0.0, -0.1, 0.1],
66
"maxSteeringAngle": 45,
77
"maxTorque": 650.0,
88
"chassis": {
@@ -32,8 +32,8 @@
3232
"suspension": {
3333
"position": [-0.92, 0.14, 1.5],
3434
"maxLength": 0.2,
35-
"stiffness": 100,
36-
"damping": 15
35+
"stiffness": 100000,
36+
"damping": 15000
3737
},
3838
"tyre": {
3939
"lateralFriction": 1.0,
@@ -50,11 +50,11 @@
5050
"suspension": {
5151
"position": [0.92, 0.14, 1.5],
5252
"maxLength": 0.2,
53-
"stiffness": 100,
54-
"damping": 15
53+
"stiffness": 100000,
54+
"damping": 15000
5555
},
5656
"tyre": {
57-
"lateralFriction": 2.0,
57+
"lateralFriction": 1.0,
5858
"longitudinalFriction": 1.0
5959
}
6060
},
@@ -68,11 +68,11 @@
6868
"suspension": {
6969
"position": [-0.92, 0.3, -1.45],
7070
"maxLength": 0.35,
71-
"stiffness": 95,
72-
"damping": 15
71+
"stiffness": 95000,
72+
"damping": 15000
7373
},
7474
"tyre": {
75-
"lateralFriction": 1.0,
75+
"lateralFriction": 0.66,
7676
"longitudinalFriction": 1.0
7777
}
7878
},
@@ -86,11 +86,11 @@
8686
"suspension": {
8787
"position": [0.92, 0.3, -1.45],
8888
"maxLength": 0.35,
89-
"stiffness": 95,
90-
"damping": 15
89+
"stiffness": 95000,
90+
"damping": 15000
9191
},
9292
"tyre": {
93-
"lateralFriction": 1.0,
93+
"lateralFriction": 0.66,
9494
"longitudinalFriction": 1.0
9595
}
9696
}

data/cars/mclaren_gt/mclaren_gt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mclaren_gt",
33
"mass": 1530,
44
"inertia": [1.76917, 0.6, 4.4],
5-
"centerOfMass": [0.0, -0.3, 0.1],
5+
"centerOfMass": [0.0, -0.1, 0.1],
66
"maxSteeringAngle": 45,
77
"maxTorque": 630,
88
"chassis": {

data/sounds/suspension2.wav

-169 KB
Binary file not shown.

src/main.d

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class GameScene: Scene
171171
Wav sfxWheels;
172172
Wav sfxRevving;
173173
Wav sfxSqueal;
174-
Wav[3] sfxSuspension;
174+
Wav[2] sfxSuspension;
175175
Wav[2] sfxHit;
176176

177177
int musicVoice;
@@ -265,13 +265,9 @@ class GameScene: Scene
265265
sfxSuspension[0].set3dDistanceDelay(true);
266266

267267
sfxSuspension[1] = Wav.create();
268-
sfxSuspension[1].load("data/sounds/suspension2.wav");
268+
sfxSuspension[1].load("data/sounds/suspension3.wav");
269269
sfxSuspension[1].set3dDistanceDelay(true);
270270

271-
sfxSuspension[2] = Wav.create();
272-
sfxSuspension[2].load("data/sounds/suspension3.wav");
273-
sfxSuspension[2].set3dDistanceDelay(true);
274-
275271
sfxHit[0] = Wav.create();
276272
sfxHit[0].load("data/sounds/hit1.wav");
277273
sfxHit[0].set3dDistanceDelay(true);

0 commit comments

Comments
 (0)