How to create a Car Controller

Don't forgot to read this guide before.

1- Place car model in the scene, set layer of car to Vehicle(8) and Unpack Prefab

2- Add Colliders and Rigidbody (set a high value for the mass of the vehicle, like 1000)

3- Create Wheel Colliders for each wheel model:

4- Add Car Controller component and assign wheel models and wheel colliders in same sequence:

You can configure the vehicle axles to have different acceleration force. Of this way, you can make 4x4 traction or only front or back traction.

5- Assign Steering Wheel

The steering wheel follow the wheel collider rotation, by default the rotation is applied to Y axis.

6- Set the center of mass

7- Create a vehicle enter trigger

8- Create and assign Inverse Kinematic Target Positions

Result:

Last updated