Looking for a car/vehicle controller with Waypoint system

Hi, in my game, the player drives a car with only accelerator and brake, you can not turn left or right. You have to follow a waypoint. I’d like to know if any scripts or assets from the store already allow you to do that, and if you might keep the car physics. Thanks!

I did this tutorial some time back in Unity 4.6 or so. With that said, the only thing that you have to adjust is the engine torque for the vehicle. In Unity 5 it requires a much higher value setting in the inspector. This was due to some physics changes with wheel colliders and such. Other than that it works. You will have to go into the code and swap out where the AI car gets it’s auto acceleration and replace that with a variable for player input. This way the car will follow these waypoints, but the player will provide brake and acceleration.

1 Like