A* Pathfinding project with mecanim animation


#1

So I bought aron granberg a* pathfinding pro and integrated it with my project and it’s working perfectly. I’m using a navmesh (Graph Raycast) as the graph, and on my agents, I’m using AIPath script with the seeker of course and RVOController for local avoidance I have my own AI script that handles that sets the destination (Target) on the AIPath script, of course after some logic (~1000 lines of code but that’s beside the point).

My question is how could I animate my agents ie. Walk, idle. Before using aron granberg a* I was using unity’s build-in navmesh system and used this tutorial to animate the agents https://docs.unity3d.com/Manual/nav-CouplingAnimationAndNavigation.html it was working but unity’s pathfinding system just sucks compared to aron granberg’s so I did everything now, the agents in the game moves, just not animated.

I tried to search a about it but couldn’t find a solution. I came across this post and saw aron’s post saying that I could use the same tutorial above but I couldn’t figure it out. Can someone help please?


#2

Hi

Currently there is no example scene which shows how to configure it with Mecanim.
The good news however is that I have been working on creating one over the last few days. I’m also collaborating with the author of the Third Person Controller package on the Asset Store to make sure our packages integrate nicely.
I have a work in progress video here: http://arongranberg.com/temp/mecanim_controller_alpha.mp4

So… sorry, but there is no example scene at the moment, but hopefully there will be one soon.


#3

I was wondering if there’s been any update on this, it sounds like exactly what I’m looking for.


#4

Hi, any news about the new example scene with Mecanim @aron_granberg ? It’s been quite while. :slight_smile: Thank you in advance for respond.


#5

Ootii’s third person motion controller handles this really well for me. In fact it’s pretty easy to switch between unity’s navmesh or a* to test it.

https://www.assetstore.unity3d.com/en/?stay#!/content/15672