Basic Car Tutorial

Hey. I just finished a simple car tutorial that will explain the basics of creating a car setup. This tutorial includes a full project download, complete with a car script that supports multiple gears and realistic engine behavior. Have fun =)

http://www.gotow.net/andrew/blog/?page_id=78

Very Cool.
Good job with the tutorial. :slight_smile:

thank you very much

Very nice tutorial, simple and uncluttered. I’m sure it will be popular.

Only, I did notice that the wheels do not spin nor to they turn. That might be an important detail for some.

I know, I forgot to include that in the tutorial, I’m updating it today.

Hello on a big “Thank You !”

I´m currently trying to talk my boss into Unity as we´re using Quest3D right now, but the engine has quite some limitations that Unity does not have.

I´m amazed by Unity up to now as it speeds up production alot compared to Quest.
Currently I´m working on an architectural visualization depicturing a bridge in it´s natural environment.
As a matter of fact I want to have real traffic in the scenery and so I´m very happy about this tutorial as it enabled me to transform my car model into a fully working car in unity. I´m currently fighting my way through an old AI tutorial that was still based on raycast colliders but I´m making progress. Yesterday my first, physically correct car made it´s way through my scenery on it´s own.
I made me sit at my comp with a big “YES!” on my face.
Thank you very much for all that helpfull ressources !
Another thing that hardly can be compared to Quest as the com and company support there is really lacking.

Wow! Glad I could help!

I was actually thinking of putting up a waypoint based AI tutorial for my car rig, and I was wondering if anyone would be interested…

would it help if I posted it?

Yes, incredibly! I’m currently stuck with AI on a little kart racing project i’m doing for experience.

Ok, I’ll have it up tomorrow.

Great news.
Thx for your effort ! :smile:

Awesome. Works really well, and feels nice to drive. Did a quick terrain with some jagged rocks/cliffs etc. and the car really started flying everywhere though, making the sound go completely nuts (WHIIIIIIIIIIIR, kind of) ^^

I’ve updated the tutorial.

The new project has some bug fixes and now has a section for simple waypoint AI. The new project download has a complete race circuit, and two AI drivers, and I’ve re-written the comments in the code, making it much easier to understand.

Oh, and the engine sound no longer goes WHIIIIIIIIIIIR :smile:

Love it!! Awesome work!

Wow! Great Tutorial. Any change you could make it in PDF format?

Thank you so much for this! Really helps me out a lot to understand how cars work!

What an awesomic bomb.

Thank you all!

included in the project folder should be a PDF and an RTFD file with all the information of the online version. just open up the project folder in the finder, and you should be good to go!

Hi, I follow this tutorial but the car doesn’t work well like the demo. It runs well on slow speed but once it gets faster, it lose balance and spins around quickly. And the car gets fast very quickly like there is no control of the max speed, and the mass in the car’s rigidbody does not affect in this case, even if i set it to 10000, the car still behave like that. The only thing I could do is to reduce the torque to 100, so the car could not get fast easily.
I know there must be something wrong but i don’t know what is that, I follow every setting in the tutorial but I just can’t get it to work well… Any idea?

Try setting the rigidbody’s drag higher in the car script, also try increasing the wheel mass. Both of these make it much more stable.

Also, someone recently pointed out to me that Unity’s physics engine works substantially better with lower values. Try scaling all values down by a factor of 10, the mass, and the torque. That might help some as well…

Im not finding any PDF in the download at all.