Car simulation based on Open Dynamics Engine
3D game with cars, stunts and software rendering, based on Open Dynamics Engine; SDL library is used for displaying the image and no 3D accelerator is required (or supported).
License: free
Requirements: SDL - www.libsdl.org
ODE - www.ode.org
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | no | yes |
Submitted by Matei on 2010-09-28.

1 - The game runs from its directory because I like all the files in one place, so that I don't get confused about where they are. It's also easier to port the game to other operating systems.
2 - The fact that I don't want a menu (or frontend, as you call it) is explained in "README", along with the reasons why. But this is free software, so if anybody wants to make such a frontend (maybe something with Python and GTK could work) can do it and then post the improved version of the game somewhere. I would really appreciate any contribution.
The car rolls over really really really easy. This is likely because it has no suspension of any kind. So, my recommendations are:
1) Add suspension.
2) Add simple ABS and traction control. This may be more difficult, but it can be as simple as applying no acceleration to a wheel that loses contact or grip with the ground. Not sure how easy this is to implement, but I'll look it up in ODE.
2. I have good news for you. I also made a game with a car that has wonderful ABS, traction control, ESP and all sorts of automatic systems (i.e. the game has no physics). Its called "simcar", can be found at http://simple3d.sourceforge.net and I only thought of it as an experiment until now. But who knows?
Last but not yeast, I made "skunks" especially for myself and I am quite pleased with how version 3.0.0 turned out (I never really liked 2.0.0 and especially 1.0.0). What I would like to do now is to create a physics engine myself; not because I don't like Open Dynamics Engine, which is great and awesome, but because it would be very interesting.
- make the wheels heavier - open "cars/car1" and replace "0.05" with "0.25" at lines 6, 7, 8 and 9, after "sph"; that's the mass of the wheel, in metric tons;
- reduce the number after "accel", at line 10 (same file) and make the car slower;
- lower the body of the car - reduce the 3rd number on line 5, which is its initial coordinate on axis X (axis X is vertical); 4th and 5th numbers are coordinates on Y and Z, 2nd number specifies the function of the object (1 - body, 2 - wheel, 3 - motor wheel, 4 - steering wheel, 5 - motor and steering wheel) and 1st number specifies the object type, from the list above (which starts with "objtypes")
I found controlling these cars very easy after a little practice, both with the keyboard and with a joystick (maybe somewhat harder with a joystick). By editing the file mentioned above, it's also easy to make a car with any number of wheels (3, 4, 10, ...), rear wheel steering etc. (I should have written that somewhere in the documentation).
My only other request, is it possible to make a camera that follows the car from behind but doesn't bob up and down with the car (makes me dizzy). They have this type of camera on games like Gran Turismo.
case 1: h=1.5; d=-4; x0=pos[0]; y0=pos[1]; z0=pos[2]; camera->vx[0]=x0; camera->vy[0]=y0; camera->vz[0]=z0; camera->vx[1]=x0+rot[0]; camera->vy[1]=y0+rot[4]; camera->vz[1]=z0+rot[8]; camera->vx[2]=x0+rot[1]; camera->vy[2]=y0+rot[5]; camera->vz[2]=z0+rot[9]; camera->vx[3]=x0+rot[2]; camera->vy[3]=y0+rot[6]; camera->vz[3]=z0+rot[10]; translat(camera,h,h*rot[4]+d*rot[6],h*rot[8]+d*rot[10]); a=asin(rot[1]); rotab(camera,camera->vx[0],camera->vy[0],camera->vz[0],camera->vx[3],camera->vy[3],camera->vz[3],a); a=-asin(rot[2]); rotab(camera,camera->vx[0],camera->vy[0],camera->vz[0],camera->vx[2],camera->vy[2],camera->vz[2],a); break;Then recompile (./comp). Works with the tracks on which the car doesn't have to get upside down (track1, track6 and track7).I find that if the cars are too easy to control, the game is boring. Besides, I think that if you take an ordinary car (not a racing car) and drive it at > 80 km/h just like you do in this game, it would roll over just about as easy as "car1". The difference is that in a real car you feel the inertial forces and the steering wheel is much more precise, so you are forced to drive it much more gently.