How to tell if Object is moving on a path?

How do I tell if an object is moving on a path towards its target? For example I’m trying to animate its movement so that it plays a walking animation when it’s walking. How do I see if it’s moving using a script? thank you!!

Hi

You can check the ai.velocity property.
See https://arongranberg.com/astar/docs/iastarai.html#velocity

1 Like

Thank you for the fast reply!!