Visible tachometer fluctuates with the RPM and gears, seen behind the steering wheel
Fixed a major memory leak where I was drawing multiple car bodies (there was a huge car model underneath the gameworld - gone now) polys at runtime is halved!
Old video of what the physics engine was (Is now more reliable, and has a tachometer - not visible in this video of the old version):
Why did I release this? Well, I only recently found this great multimedia package, and saw how many are newcomers to scripting and object coding - I’ve seen many posts asking for “how to rotate the steering wheel”, or “why is my car jumping so high?”. Well, I decided to do a bit of internet scrounging, found a nice little physics tutorial by some person (wow, I already forgot his name - Will edit this post when I find the tut again), and decided to write it anew into the Unity3D’s car tutorial, which has lovely terrain. It’s also due to the fact that most of the Unity3D users don’t have the pro license, or any way of buying assets out of the asset store (It holds true for me, too).
And the McLaren? Ah, that’s just one of my favourite car makes. In order for me to create it, I had to split the mesh into two parts - One for the steering wheel, and the other for the rest. From there it was a simple texture-selecting process that took about 15 minutes.
All in all, it took me 3-4 days of following a tutorial, and applying the changes to the other tutorial that contained the terrain that I wanted.
It includes:
Steering wheel turns according to user input
“Rollable” car (due to physics of course)
Some basic sound effects (the motor)
Camera switching system
And please guys, if you’re going to use this - Replace the McLaren with your own car.
RESOURCES:
Here’s the website that I got the McLaren off of: http://archive3d.net/
Here’s the blog that I got the tut off of: http://www.gotow.net/andrew/blog/?page_id=78
The car physics was originally scripted by Andrew.
I hope you can put this to good use
Also, if you find any glitches, please notify me - I’d like to make it as usable by others as possible.
Keyboard controls (sorry for not posting them!)
Up down left right = Movement
1 2 3 4 (Not the numpad numbers) = Camera control
No reset button yet (Ran out of time) - If you flip the car, you’ll need to Alt+F4 and restart the application.
Yeah, thanks - Just as a word of warning for those who’re going to jump straight into this, the actual car model (along with the steering wheel) is attatched to the “carphysics” body. This is done so that the interpolation of the Rigid Body fixed joint doesn’t cause any jittering.
I’ll be working on this further down the track, optimizing it and such so that child objects work with their parents and etc, but for now this is practically useable by any newcomer to Unity3D. Well, at least I hope so.
Half-half - After all, I’ve only just started in Unity3D.
But what was done by him (that I didn’t do) I did extensively edit.
edit
Oh, so I see DropBox isn’t completely compatible with everyone - That’s a shame. Well I’ll upload a Host-A.net mirror tomorrow because I’ve just about used up my bandwidth for today.
Sorry for any inconveniences, I’ll get the link up asap tomorrow.
All links are down for the moment, please bear with me D:
Visible tachometer fluctuates with the RPM and gears, seen behind the steering wheel
Fixed a major memory leak where I was drawing multiple car bodies (there was a huge car model underneath the gameworld - gone now) total polys at runtime is halved!
hi!
this looks awesome, I’m downloading it right now.
One more thing, the website from where you have take the McLaren models says that all the models can be used in commercial products (games, etz.) but isn’t there any problem with the car’s companies?
So, I have downloaded your project but it doesn’t work (the scene is all pink and doesn’t work) is it only for 2.6 or works with unity 3.2 Pro?
Other thing, as I’m creating a commercial game I would like to know if the models of that site are really available to use, or if I’m gonna have troubles with the cars’ companies?
Hey Majatek, this project is cool but the car seems to have too much grip, it does not even drift. Could you(or anyone else) point out where should i modify the code to make it drift?
please help me.
i opened your project.
made everything to a package.
opened my project.
added the stuff from the package.
everything works fine expect the gears.
the car can’t get past first gear.