This tutorial is to assist developers in creating and using datablocks for vehicles in the Torque Game Engine. When all is said and done I hope to have a complete list of datablock methods and properties. I plan to have examples for the standard vehicle types (wheeled, hover, flying) and possibly a few more saying they don't all fall into one of those three examples. This will probably be one of the most frequently changed sections of this tutorial so please check back often.
For now I have decided to release a working example datablock so you can test your model. This is by no means perfect and I will be working on a better example. If you havent made your own model you can download example1.zip (seen below) from the wheeled vehicle tutorial.
To get your vehicle working is pretty easy.
The recent changes to vehicles in torque have made it so wheels are no longer apart of your vehicle model. Now all you need is the hub and a separate wheel dts.
You will also notice there is a front and back tire datablock. I believe you can do it with just one but I found it was pretty neat to be able to play with both to give the car different feels. For example having a rear wheel drive vehicle you could change the friction property for the back tires to give them a little more grip. You could also have a diff rent wheel on the back to jack it up like a old hotrod!