Advanced car simulator

Discuss scenes and videos made with Algodoo.

Advanced car simulator

Postby Kilinich » Sat Oct 29, 2011 11:18 pm

It's really hard so simulate real car because too much variable you need to tune. Try it! :crazy:
:thumbup:

Rating: rated 8.1
Filesize: 10.16 kB
Comments: 15
Ratings: 14
download


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...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Advanced car simulator

Postby davidz40 » Sun Oct 30, 2011 10:08 am

It's missing suspension, gearbox, clutch, engine torque curve, tyre wear, aerodynamic forces from moving sideways... :lol: Seriously, that's really great and arleady beats many racing games. :clap: :clap: :clap: :clap:
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am

Re: Advanced car simulator

Postby Kilinich » Sun Oct 30, 2011 10:58 am

It's ready for implementing engine with gearbox, I've just not focused on that. :mrgreen:
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...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Advanced car simulator

Postby Banjerboef » Mon Oct 31, 2011 11:34 am

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 :( .
User avatar
Banjerboef
 
Posts: 29
Joined: Fri Oct 14, 2011 9:57 am
Location: The Netherlands

Re: Advanced car simulator

Postby Nxdt » Mon Oct 31, 2011 9:01 pm

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.
User avatar
Nxdt
 
Posts: 1019
Joined: Mon Aug 31, 2009 6:32 pm
Location: Scotland!


Return to Scenes

Who is online

Users browsing this forum: No registered users and 7 guests

cron