Thursday, May 15, 2014

Simple Path Following AI Script in Unity 3D

Hey everyone! Just because this blog is not updated for a very long time, doesn't mean I'm dead. :D Okay, for this first post since 2 years (or more) ago, I am gonna tell you how to create a simple path following AI system in Unity 3D. First of all, create a new project and set up a scene till it look like this:

Our agent is just consist of a capsule and a cube parented to it. The box collider on the cube was removed.

And also, I make the main camera parented to our agent. Just position it till you can achieve a third person camera look.