UnityCar Setup
UnityCar is a Unity 3d editor extension which applies physics components to a 3d car mesh.  It is one of the best vehicle physics package available.  It is very easy to use once you understand the way it works.  This tutorial will walk you through the initial set up of a 4-wheeled vehicle.

Let's get started....

Setting up the Scene
1. Create or open a scene in Unity
  a. Create several lights (optional)
  b. Add Car Cameras Script to Main Camera
      ** Car Cameras Script can be found in UnityCarScripts folder in Assets
  c. Create a Plane.
     ** Scale X: 1000, Z: 1000

Create UnityCar

1. Add UnityCar GameObject to Scene
   ** GameObject-->Create Other-->UnityCar


2. When added to the scene, UnityCar has position of (0,0,0).
3. Move UnityCar GameObject 0.45 unit in Y axis to lift mesh above plane.


Note: UnityCar is setup with Y-axis as vertical axis (up), Z-axis is front/rear (front of car is Z-positive).  When creating your vehicle mesh, this is a good guideline to follow.

Add Vehicle Mesh
In this tutorial we are using one of our vehicle assets (GR3D 030713SSCR) available at the Unity Asset Store.
1. Drag and Drop a 4-Wheeled Vehicle mesh into scene.
2. Drag and parent vehicle mesh (030713SSCR) to UnityCar GameObject.
3. Reset Vehicle (030713SSCR) GameObject to match the position and rotation of UnityCar GameObject (very important)


4. Delete the following GameObjects : Body, Body, ModelFL, ModelFR, ModelRL, ModelRR. (see img 5A)
5. Drag and parent wheel/tire objects to WheelFL, WheelFR, WheelRL, WheelRR.
In this tutorial, we parented Whl FL to WheelFL, Whl FR to WheelFR, etc.(see img 5B)


6. Reset Wheel/Tire objects. In this tutorial, we reset Whl FL, Whl FR, Whl RL, Whl RR. Both Position/ Rotation will be (0,0,0), and will inherit the Position/Rotation of WheelFR,FL,RL,RR.
**Very Important:  Be Certain that you reset the children of WheelFR,..FL,..RL,..RR, and NOT RESET the parents.

After resetting the vehicle mesh and its wheels, this is what we have so far (see image below).

Wheels and Tires
1. Select WheelFL GameObject (the parent), and move to position correctly to vehicle. An easy way is to set your scene to Left View to position in Z-axis, set scene to Top view to position X-axis (see images below)
**Very Important: Be certain that you move to position WheelFL (the parent), and NOT the child (Whl FL).
2. Do the same process for the other 3 wheels. An easy way, position WheelFL and WheelRL. Copy and paste position to WheelFR and WheelRR. Note: X-position of WheelFL and WheelRL are negative. X-position of WheelFR and WheelRR are positive.

3. Drag and Drop Whl FL (child of WheelFL) into Model in the Wheel Script Inspector (see image below)


4. Enter Wheel Dimensions (Radius, Rim Radius, Width).
  ** Wheel Dimensions are found in the documentation included in the package you downloaded.  If you created your own vehicle mesh, be certain that you acquire the wheel dimension from the 3d application you used to create the mesh.
5. Repeat the same process for the other 3 wheels.

Mesh Collider
Mesh Colliders are included in the UnityCar GameObjects (Collider Down, Collider Up)
Option 1:
1. Move and Scale Collider Down and Collider Up to fit the vehicle body object.
2. Select physics material for both colliders. Car physics material is included with UnityCar package and can be found in Samples-->PhysicsMaterials folder.
3. Check (enable) Convex.


Option 2 Custom Collider:
1. Drag and Drop Custom Collider into UnityCar GameObject in the hierarchy.
** In this tutorial our collider is 030713SSCR_Collider.
2. Reset Custom Collider Gameobject to match UnityCar GameObject (very important).
3. Add Component-->Physics-->Mesh Collider
4. Select physics material. Car physics material is included with UnityCar package and can be found in Samples-->PhysicsMaterials folder.
5. Check (enable) Convex.
6. Remove Component: Mesh Renderer in the Inspector.
7. Delete Collider Down, Collider Up


Layers
1. Select UnityCar GameObject
2. Change Layer to Car1 (or to any new layer you created)
3. Confirm (Yes) to change all children to Car1 layer.

4. Select WheelFL GameObject
5. Change Layer to Wheel
6. Confirm (Yes) to change all children to Wheel layer.
7. Repeat process for the other 3 wheels.


***Very Important: The ground (road) can NOT use the same layers used by vehicle.

Center of Gravity (COG)
The Y-Position of COG depends on the pivot point of the collider.  On all of our vehicle models, the pivot point is always (0,0,0).  Therefore, the COG will be a positive number above the pivot point.  The prefab cars included in UnityCar package have their COG below zero (negative number...-0.1 for the GTR R34) because the pivot point is in the middle center of mesh.

1. Move the COG to the point just below the Y-Axis Center of vehicle/collider mesh.  In this tutorial, our vehicle COG is 0.4

UnityCar Components
At this point of our tutorial, our UnityCar is already in a drivable state.  Continue tuning the vehicle to achieve the desired performance.  The following setup (see image below) is an example setup we use for all of our demo vehicles.  The setup may not work with all vehicles, but it is a good starting point.

1. Select UnityCar GameObject, and make the following changes to Rigidbody, Axles, Vehicle Dynamics, and Drivetrain.  Axis Car Component setup is unchanged (default setting).

2. Add additional components: Sound Controller, Aerodynamic Resistance, Wing

The Dashboard: Speedometer, Tachometer, Gear Indicator
The easiest and fastest way to apply the dashboard to your new vehicle is to load one of the prefab cars included in the package, move/parent the dashboard to your new vehicle, and RESET.  In a later tutorial, we will go into detail of how to create a custom dashboard.

Conclusion
That's it! Our UnityCar is Game Ready and drivable.  Simply drag and drop it in the target slot of the CarCameras, or in the StartGame component.  To test drive this car, follow this link http://www.gameready3d.com/Preview/030713SSCR/

Please view our great selection of Game Ready 3d Vehicles at the Unity Asset Store
Link: https://www.assetstore.unity3d.com/#publisher/1634
Featured 3D Models
020117MSCL

SRT Challenger Hellcat

* MuscleCars 3D Model Series
* Read More Details
* Unity Asset Store Link

040117PSUV

Chevrolet Tahoe Police SUV

* PoliceCars 3D Model Series
* Read More Details
* Unity Asset Store Link

010117SHBK

Honda CRX Si

* HotHatch 3D Model Series
* Read More Details
* Unity Asset Store Link

101716OFFRD

Chevrolet Tahoe Offroad

* OffroadVehicles 3D Model Series
* Read More Details
* Unity Asset Store Link

042016SSCR

Mini Cooper JCW

* SportsCars 3D Model Series
* Read More Details
* Unity Asset Store Link

112613MSCL

Chevrolet Camaro ZLR

* MuscleCars 3D Model Series
* Read More Details
* Unity Asset Store Link

080216MSCL

Plymouth Cuda Drag Car

* MuscleCars 3D Model Series
* Read More Details
* Unity Asset Store Link

072016MSCL

Chevrolet Chevelle Drag Car

* MuscleCars 3D Model Series
* Read More Details
* Unity Asset Store Link

062916SSPC

Aston Martin One 77

* SuperCars 3D Model Series
* Read More Details
* Unity Asset Store Link

050116FCVI

Ford Crown Victoria Police

* PoliceCars 3D Model Series
* Read More Details
* Unity Asset Store Link

081415OFFRD

Bowler Nemesis

* OffroadVehicles 3D Model Series
* Read More Details
* Unity Asset Store Link

010416TRUK

Euro Truck Magnum Cargo

* HeavyTrucks 3D Model Series
* Read More Details
* Unity Asset Store Link