How to follow path without Character Controller

I searched around and tried a bunch of things but I couldn’t figure it out.

I’m following the instructions on the Getting Started Part 1 page in the documentation. I understand that vectorPath[] contains a list of the nodes in the path so the AI can follow them but I can’t get the AI to follow the path without using the character controller.

So how can I get the AI to follow the path without using a character controller?

Hi

You can simply modify the position of the Transform or use Transform.Translate.

1 Like

Hi aron, there must be something I’m not understanding. I read the getting started tutorial a few times and really analyzed the example codes. In the example code for part 1 of the getting started tutorial, I copied everything except I replaced “controller.SimpleMove (dir)” with “transfrom.Translate(dir)”.

I also tried using “Vector3.MoveTowards(transform.position, path.vectorPath[currentWaypoint])”. I still can’t get the AI to follow the path.

Actually transform.Translate(dir) worked. Thank you for your help!