- Home /
Pathfinding by detecting location of a GameObject...
I want to implement an extremely basic pathfinding system by detecting where the destination object is: North, South, East, or West of the current enemy game object; by moving until the object reaches the player object. Is this possible? If yes, how can it be carried out? Is there a specific method?
I'm unsure as to how to start this :/
Thanks in advance! :D
the extremely simple way is to use Unity navmesh then it handles the AI for you
Yes, but I don't have unity pro. Thanks for your help though! :D
right. So download lates Unity where nav mesh is free. see here http://answers.unity3d.com/questions/616683/is-navmesh-now-available-on-unity-free.html
Oh, wow... I didn't notice :P
Thanks for the reply! Also, do you have any pointers as to which direction I should go to? :D
Answer by GraviterX · Jan 31, 2015 at 08:48 PM
Try the A* pathfinding system. It's easy to use, but you will need to do some scripting yourself. You can get it for free or buy it in the asset store.