- Home /
How to do AI pathfinding on trees and other vertical surfaces?
I am trying to get my AI squirrel to climb up trees and other vertical surfaces. Not just straight up, but all over the surface, such as a real squirrel would climb up and sideways around the tree. I have done quite a bit of searching and cannot seam to find any examples of this, though I am sure I have seen it done in some game. I have thought of using just animation to move the squirrel to different places on the tree, but then I would need A LOT of animations for the amount of different types of trees and other surfaces. Using just animation could also be a problem as I would like the player to be able to attack the squirrel while it is on the tree. With the new NavMeshSurface components, vertical surfaces can have a NavMesh, but this won't work on a round surface such as a tree. Is there any way to do some sort of pathfinding on a vertical and round surface (like a tree)?
Use a pathfinding solution that offers more flexibility than Unity's built-in system suchn as Aron Granberg's Astar Pathfinding Project.
Your answer
Follow this Question
Related Questions
NavMesh.SamplePosition returns point outside the NavMesh 0 Answers
How to build a custom shape NavMesh Area 1 Answer
Navmesh agent stuck on partial path 0 Answers
Make a flying enemy ? 0 Answers