[UPDATE] If you are looking for the breaking bugfix check the description after expanding it!
Let’s learn how to create a car controller in Unity. We will get to know Unity’s wheel collider component and use it to move a car. We will also create a simple camera script that will follow the car.
There is a bug in the HandleMotor() method in the CarController.cs. The “if (isBreaking) check should be removed. The fix is also pushed to the GitHub repository. The method should look like that:
private void HandleMotor()
frontLeftWheelCollider.motorTorque = verticalInput * motorForce;
frontRightWheelCollider.motorTorque = verticalInput * motorForce;
currentbreakForce = isBreaking ? breakForce : 0f;
ARCADE: FREE Racing Car
by: iMENA Games
Grab the whole project from GitHub: