Get location of closest path vertice

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rabbitslime

I have a question, how would one get the location of the closest path vertice that an AI is moving to? I need it so I can determine the animation that my entity should be using and if it needs to be flipped horizontally. I am creating an isometric game and the AI can’t rotate, it must change animations and/or flip horizontally to face another direction. The AI will currently stare straight to its food source as it pathfinds to it.