Answer the question
In order to leave comments, you need to log in
How to make an autopilot for a car in Unity3D?
I have a car in which physics is involved, I wrote a script to control it, but I need it to drive along the route I set (in the form of points, i.e. empty gameObjects), how can this be implemented?
Answer the question
In order to leave comments, you need to log in
The easiest and fastest option is to use the Path Creator Asset. This is an asset for creating vector paths, just the way you want it. Asset is free. But I'm not sure if it will fit your car system.
There is another option. It is more complex and lengthy, but can be more flexible. You can create a list of points, then move the car between the current and next point.
But there is a third option - this is the use of technology to find the nearest path. That is, using the built-in Nav Mesh in Unity. It will not allow you to change the route so easily, but for some related purposes it will come up.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question