- Home /
Pathfinding Point and Click
Hi,
Could someone please give me a hand with pathfinding. I've purchased NavMeshPro (https://www.assetstore.unity3d.com/#/content/14079) as I thought it would do the trick for me but unfortunely no such luck. I would like a point-and-click movement for the Player. However its important that the player gets to the destination by finding the best route, avoiding obstacles such as Box Colliders. I've attached a screenshot of simple Scene to display better:
Once the Player clicks on a location in the level the Player (Green Cube) will move to the mouse point location, avoiding the Box Colliders. I will obviously have different scenes where varied size and location for the box colliders. I know probably the best tool is “A* Pathfinding” (http://arongranberg.com/astar/). I've check the following tutorial (https://www.youtube.com/watch?v=bkCLqPpopvE) however it doesn't meet my required goal.
Any advice would be greatly appreciated.
Your answer
![](https://koobas.hobune.stream/wayback/20220613143436im_/https://answers.unity.com/themes/thub/images/avi.jpg)