This may be obvious to some people but I just can’t grasp many ways to trigger my walking animations for npcs and enemies while pathfinding. With player input we have immediate access to direction based on the horizontal and vertical axis, but AI do not. What is the best way to determine what direction the AI is moving relative to the target? heck ANY way would be pleasantly informative. First time dabbling with pathfinding and unity so some concepts are new to me. Is it possible to get the direction between nodes and call an animation based on that?
Thanks in advance to anyone that cares to respond
SOLVED: Just had to get the direction vector of movement and play the animation based off that. Not sure how to delete this post but it can be closed if i cant figure it out