Advanced car simulator
5 posts • Page 1 of 1
Advanced car simulator
It's really hard so simulate real car because too much variable you need to tune. Try it!
You can adjust car via scene.my.variables:
Scene.my.carM := 1168.0; // Car weight
Scene.my.carW := 2.0; // Car width
Scene.my.carCH := 0.3; // mass center height from ground
Scene.my.carA := 1.1; // distance from mass center to front wheel
Scene.my.carB := 1.1; // distance from mass center to rear wheel
Scene.my.carAero := 0.05; // Aerodynamic factor - how much car will stick to ground on speed
Scene.my.tyreK := [1, 0.5, 0.6, 0.4]; //Tyre friction in different states [rolling, lock, spin, slide]
Scene.my.engPower := 10000.0; // basic engine power
Scene.my.spdFactor := 20; // Power degrade with car speed factor
Scene.my.engDB := 1.0; // Engine power distribution on rear wheels
Scene.my.engDF := 0.0; // Engine power distribution on front wheels
Scene.my.brkPower := 20000.0; // brake power
Scene.my.brkDB := 0.4; // brake balance (back)
Scene.my.brkDF := 0.6; // brake balance (front)
Scene.my.simG := 9.8; // Vertical G force can be adjusted for hills/ramp simulation
You can adjust car via scene.my.variables:
Scene.my.carM := 1168.0; // Car weight
Scene.my.carW := 2.0; // Car width
Scene.my.carCH := 0.3; // mass center height from ground
Scene.my.carA := 1.1; // distance from mass center to front wheel
Scene.my.carB := 1.1; // distance from mass center to rear wheel
Scene.my.carAero := 0.05; // Aerodynamic factor - how much car will stick to ground on speed
Scene.my.tyreK := [1, 0.5, 0.6, 0.4]; //Tyre friction in different states [rolling, lock, spin, slide]
Scene.my.engPower := 10000.0; // basic engine power
Scene.my.spdFactor := 20; // Power degrade with car speed factor
Scene.my.engDB := 1.0; // Engine power distribution on rear wheels
Scene.my.engDF := 0.0; // Engine power distribution on front wheels
Scene.my.brkPower := 20000.0; // brake power
Scene.my.brkDB := 0.4; // brake balance (back)
Scene.my.brkDF := 0.6; // brake balance (front)
Scene.my.simG := 9.8; // Vertical G force can be adjusted for hills/ramp simulation
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Advanced car simulator
It's missing suspension, gearbox, clutch, engine torque curve, tyre wear, aerodynamic forces from moving sideways... Seriously, that's really great and arleady beats many racing games.
Phundamentalist
-
davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
Re: Advanced car simulator
It's ready for implementing engine with gearbox, I've just not focused on that.
friction can be a function depends on x,y pos so it's possible to calc every wheel individually.
friction can be a function depends on x,y pos so it's possible to calc every wheel individually.
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Advanced car simulator
You can make every car in the world with your car simulator!!!
If you want a Bugatti Veyron, you can just change the variables.
This car is so awesome.
I can't beat your accuracy!!!
I tried it, but I failed .
If you want a Bugatti Veyron, you can just change the variables.
This car is so awesome.
I can't beat your accuracy!!!
I tried it, but I failed .
-
Banjerboef - Posts: 29
- Joined: Fri Oct 14, 2011 9:57 am
- Location: The Netherlands
Re: Advanced car simulator
Kilinich, i would do this myself but i honesty wouldn't know how; Is it possible to use this method to simulate an aerofoil? I think it would give very accurate results and allow for stalls and other phenomenon to be simulated.
-
Nxdt - Posts: 1019
- Joined: Mon Aug 31, 2009 6:32 pm
- Location: Scotland!
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests